Large refactor of HTTP and Console stack.

This commit is contained in:
Taylor Otwell
2014-10-20 11:14:41 -05:00
parent 834cb7530d
commit 4301348646
19 changed files with 179 additions and 356 deletions

25
artisan
View File

@@ -27,23 +27,7 @@ require __DIR__.'/bootstrap/autoload.php';
|
*/
$app = require_once __DIR__.'/bootstrap/start.php';
/*
|--------------------------------------------------------------------------
| Load The Artisan Console Application
|--------------------------------------------------------------------------
|
| We'll need to run the script to load and return the Artisan console
| application. We keep this in its own script so that we will load
| the console application independent of running commands which
| will allow us to fire commands from Routes when we want to.
|
*/
$app->setRequestForConsoleEnvironment();
$artisan = Illuminate\Console\Application::start($app);
$app = require_once __DIR__.'/bootstrap/app.php';
/*
|--------------------------------------------------------------------------
@@ -56,7 +40,10 @@ $artisan = Illuminate\Console\Application::start($app);
|
*/
$status = $artisan->run();
$status = $app->make('Illuminate\Contracts\Console\Kernel')->handle(
new Symfony\Component\Console\Input\ArgvInput,
new Symfony\Component\Console\Output\ConsoleOutput
);
/*
|--------------------------------------------------------------------------
@@ -69,6 +56,4 @@ $status = $artisan->run();
|
*/
$app->shutdown();
exit($status);