-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzero
More file actions
34 lines (26 loc) · 713 Bytes
/
zero
File metadata and controls
34 lines (26 loc) · 713 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
#!/usr/bin/env php
<?php
// Start the journey
use App\Core\CLI\Command;
define('ZERO_START', microtime(true));
define('ROOT_DIR', __DIR__);
define('DS', DIRECTORY_SEPARATOR);
// Load the autoloader
if (file_exists('./vendor/autoload.php')) {
// Load the composer autoloader
require_once './vendor/autoload.php';
} else {
// Load the bootstrap files
require_once './app/Core/functions.php';
// Load the custom autoloader
require_once './app/Core/Autoloader.php';
// Register the autoloader
Autoloader::setPath(ROOT_DIR . '/app/');
spl_autoload_register('Autoloader::loader');
}
/**
* Start the command line listener
*
* @return void
*/
(new Command())->listener();