From b66a5e84cf7c572a27a02a3873a4fe697ec5ed52 Mon Sep 17 00:00:00 2001 From: Franck DAKIA Date: Mon, 20 Jan 2025 01:00:40 +0000 Subject: [PATCH] refactor: update entry controller --- public/index.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/public/index.php b/public/index.php index 0783293..3a6a2a6 100644 --- a/public/index.php +++ b/public/index.php @@ -5,13 +5,13 @@ use Bow\Http\Request; use Bow\Http\Response; -if (file_exists(__DIR__ . '/../var/storage/maintenance.php')) { - require __DIR__ . '/../var/storage/maintenance.php'; -} - // Register The Auto Loader if (!file_exists(__DIR__ . "/../vendor/autoload.php")) { - die("Please install the dependencies with 'composer update'"); + die("Please install the dependencies with 'composer update'"); +} + +if (file_exists(__DIR__ . '/../var/storage/maintenance.php')) { + require __DIR__ . '/../var/storage/maintenance.php'; } require __DIR__."/../vendor/autoload.php";