Skip to content

Commit 8dc167e

Browse files
authored
Merge pull request #87 from bowphp/feat/queue-config
refactor: by fix messaging settings and update entry controller
2 parents 8947ba5 + 5328f8b commit 8dc167e

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

app/Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function namespaces(): array
3838
'exception' => 'App\\Exceptions',
3939
'producer' => 'App\\Producers',
4040
'command' => 'App\\Commands',
41-
'messaging' => 'App\\Messaging',
41+
'messaging' => 'App\\Messages',
4242
];
4343
}
4444

bow

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ $setting->setConfigDirectory(__DIR__.'/config');
3636
$setting->setPublicDirectory(__DIR__.'/public');
3737
$setting->setProducerDirectory(__DIR__.'/app/Producers');
3838
$setting->setCommandDirectory(__DIR__.'/app/Commands');
39+
$setting->setMessagingDirectory(__DIR__.'/app/Messages');
3940

4041
// Defines the local server starter
4142
$setting->setServerFilename(__DIR__.'/server.php');

public/index.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
use Bow\Http\Request;
66
use Bow\Http\Response;
77

8-
if (file_exists(__DIR__ . '/../var/storage/maintenance.php')) {
9-
require __DIR__ . '/../var/storage/maintenance.php';
10-
}
11-
128
// Register The Auto Loader
139
if (!file_exists(__DIR__ . "/../vendor/autoload.php")) {
14-
die("Please install the dependencies with 'composer update'");
10+
die("Please install the dependencies with 'composer update'");
11+
}
12+
13+
if (file_exists(__DIR__ . '/../var/storage/maintenance.php')) {
14+
require __DIR__ . '/../var/storage/maintenance.php';
1515
}
1616

1717
require __DIR__."/../vendor/autoload.php";

0 commit comments

Comments
 (0)