diff --git a/public/index.php b/public/index.php index e43cc40..1c3e9d8 100644 --- a/public/index.php +++ b/public/index.php @@ -14,9 +14,16 @@ use App\Repositories\PostRepository; use App\Services\HtmlSanitizer; use App\Services\HtmlPurifierFactory; use App\Database\Migration; +use App\Bootstrap; use App\Routes; use App\Config; +// ============================================ +// Vérifier les répertoires +// ============================================ + +Bootstrap::checkDirectories(); + // ============================================ // Charger les variables d'environnement // ============================================ diff --git a/src/Bootstrap.php b/src/Bootstrap.php new file mode 100644 index 0000000..06ee874 --- /dev/null +++ b/src/Bootstrap.php @@ -0,0 +1,26 @@ +