-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathzero
More file actions
executable file
·38 lines (26 loc) · 792 Bytes
/
zero
File metadata and controls
executable file
·38 lines (26 loc) · 792 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
30
31
32
33
34
35
36
37
38
#!/usr/bin/env php
<?php
declare(strict_types=1);
$_ENV['BASE_PATH'] = __DIR__;
require_once __DIR__ . '/core/libraries/Config/Helper.php';
require_once __DIR__ . '/core/libraries/Storage/Helper.php';
$kernel = require __DIR__ . '/core/kernel.php';
$helpers = $kernel['helpers'];
foreach ($helpers as $helper) {
if (($helper['cli'] ?? true) === false) {
continue;
}
$enabled = $helper['enabled']['console'] ?? ($helper['cli'] ?? true);
if (! $enabled) {
continue;
}
require_once $helper['path'];
}
require_once __DIR__ . '/core/bootstrap/autoload.php';
bootApplicationHelpers();
if (function_exists('loadEnvFiles')) {
loadEnvFiles();
}
use Zero\Lib\Console\Application;
$application = new Application();
exit($application->run($argv));