From 81b7a60267beba0ff425ad1591411d182b86c802 Mon Sep 17 00:00:00 2001 From: David D'ALMEIDA Date: Wed, 21 Feb 2024 17:23:50 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Sources/public/ind?= =?UTF-8?q?ex.php'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/public/index.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Sources/public/index.php b/Sources/public/index.php index ea0cfb45..c23f666a 100755 --- a/Sources/public/index.php +++ b/Sources/public/index.php @@ -65,12 +65,4 @@ $appFactory->registerService(\Twig\Environment::class,\Twig\Environment::class); // $databaseContext = DatabaseContext::getInstance(); $appFactory->AddControllers(); -$app = $appFactory->create(); -if (!is_null($app)){ - // Ajout des Middleware - /*$app->use(new LoggingMiddleware());*/ - $app->use(new AuthMiddleware()); - $app->mapControllers(); - $app->run(RequestFactory::createFromGlobals()); -}