mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
As discussed with @daftspunk, we now have to hard-code some overrides to ensure our helpers are loaded first. To keep the code DRY and self-explanatory, we do need to keep the autoload.php file.
64 lines
2.0 KiB
PHP
64 lines
2.0 KiB
PHP
#!/usr/bin/env php
|
|
<?php
|
|
|
|
define('LARAVEL_START', microtime(true));
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Bootstrap dependencies
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| We use a custom bootstrap autoloader to load some October dependencies
|
|
| first, before bringing in all dependencies from Composer.
|
|
|
|
|
*/
|
|
|
|
require __DIR__.'/bootstrap/autoload.php';
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Turn On The Lights
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| We need to illuminate PHP development, so let us turn on the lights.
|
|
| This bootstraps the framework and gets it ready for use, then it
|
|
| will load up this application so that we can run it and send
|
|
| the responses back to the browser and delight our users.
|
|
|
|
|
*/
|
|
|
|
$app = require_once __DIR__.'/bootstrap/app.php';
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Run The Artisan Application
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| When we run the console application, the current CLI command will be
|
|
| executed in this console and the response sent back to a terminal
|
|
| or another output device for the developers. Here goes nothing!
|
|
|
|
|
*/
|
|
|
|
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
|
|
|
|
$status = $kernel->handle(
|
|
$input = new Symfony\Component\Console\Input\ArgvInput,
|
|
new Symfony\Component\Console\Output\ConsoleOutput
|
|
);
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Shutdown The Application
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Once Artisan has finished running. We will fire off the shutdown events
|
|
| so that any final work may be done by the application before we shut
|
|
| down the process. This is the last thing to happen to the request.
|
|
|
|
|
*/
|
|
|
|
$kernel->terminate($input, $status);
|
|
|
|
exit($status);
|