From b66a5e84cf7c572a27a02a3873a4fe697ec5ed52 Mon Sep 17 00:00:00 2001 From: Franck DAKIA Date: Mon, 20 Jan 2025 01:00:40 +0000 Subject: [PATCH 1/2] 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"; From 5328f8bcd6262d80a62ac543f55b5efb03349df1 Mon Sep 17 00:00:00 2001 From: Franck DAKIA Date: Sat, 25 Jan 2025 18:21:31 +0000 Subject: [PATCH 2/2] fix: messaging settings --- app/Kernel.php | 2 +- bow | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Kernel.php b/app/Kernel.php index b328a26..ca15921 100644 --- a/app/Kernel.php +++ b/app/Kernel.php @@ -38,7 +38,7 @@ public function namespaces(): array 'exception' => 'App\\Exceptions', 'producer' => 'App\\Producers', 'command' => 'App\\Commands', - 'messaging' => 'App\\Messaging', + 'messaging' => 'App\\Messages', ]; } diff --git a/bow b/bow index b1e4e9c..25aea72 100755 --- a/bow +++ b/bow @@ -36,6 +36,7 @@ $setting->setConfigDirectory(__DIR__.'/config'); $setting->setPublicDirectory(__DIR__.'/public'); $setting->setProducerDirectory(__DIR__.'/app/Producers'); $setting->setCommandDirectory(__DIR__.'/app/Commands'); +$setting->setMessagingDirectory(__DIR__.'/app/Messages'); // Defines the local server starter $setting->setServerFilename(__DIR__.'/server.php');