-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathartisan
More file actions
29 lines (24 loc) · 776 Bytes
/
artisan
File metadata and controls
29 lines (24 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env php
<?php
use support\Container;
use Webman\Config;
use WebmanTech\LaravelConsole\Kernel;
require __DIR__.'/vendor/autoload.php';
// same as webman/console
if (!in_array($argv[1] ?? '', ['start', 'restart', 'stop', 'status', 'reload', 'connections'])) {
if (file_exists(__DIR__ . '/support/bootstrap.php')) {
require_once __DIR__ . '/support/bootstrap.php';
}
} else {
if (class_exists('Support\App')) {
Support\App::loadAllConfig(['route']);
} else {
Config::reload(config_path(), ['route', 'container']);
}
}
$kernel = Container::get(Kernel::class);
$status = $kernel->handle(
$input = new Symfony\Component\Console\Input\ArgvInput,
new Symfony\Component\Console\Output\ConsoleOutput
);
exit($status);