winter/artisan

64 lines
2.0 KiB
Plaintext
Raw Normal View History

2014-05-14 23:21:55 +10:00
#!/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';
2014-05-14 23:21:55 +10:00
/*
|--------------------------------------------------------------------------
| Turn On The Lights
2014-05-14 23:21:55 +10:00
|--------------------------------------------------------------------------
|
| 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.
2014-05-14 23:21:55 +10:00
|
*/
2015-02-07 11:57:26 +11:00
$app = require_once __DIR__.'/bootstrap/app.php';
2014-05-14 23:21:55 +10:00
/*
|--------------------------------------------------------------------------
| 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);
2015-02-07 11:57:26 +11:00
$status = $kernel->handle(
$input = new Symfony\Component\Console\Input\ArgvInput,
new Symfony\Component\Console\Output\ConsoleOutput
);
2014-05-14 23:21:55 +10:00
/*
|--------------------------------------------------------------------------
| 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.
|
*/
2015-02-07 11:57:26 +11:00
$kernel->terminate($input, $status);
2014-05-14 23:21:55 +10:00
exit($status);