You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.4 KiB
PHP
52 lines
1.4 KiB
PHP
#!/usr/bin/env php
|
|
<?php
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Switch to root path
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Point to the application root directory so leaf can accurately
|
|
| resolve app paths.
|
|
|
|
|
*/
|
|
chdir(__DIR__);
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Register The Auto Loader
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Composer provides a convenient, automatically generated class loader
|
|
| for our application. We just need to utilize it! We'll require it
|
|
| into the script here so that we do not have to worry about the
|
|
| loading of any our classes "manually". Feels great to relax.
|
|
|
|
|
*/
|
|
require __DIR__ . '/vendor/autoload.php';
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Bring in (env)
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Quickly use our environment variables
|
|
|
|
|
*/
|
|
try {
|
|
\Dotenv\Dotenv::createUnsafeImmutable(__DIR__)->load();
|
|
} catch (\Throwable $th) {
|
|
trigger_error($th);
|
|
}
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Boot Aloe Console
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Automatically load your config, paths and commands,
|
|
| and then run the console application.
|
|
|
|
|
*/
|
|
Leaf\Core::loadConsole();
|