Browse Source

Tweak artisan file.

Taylor Otwell 9 years ago
parent
commit
009c2fbd26
1 changed files with 6 additions and 2 deletions
  1. 6 2
      artisan

+ 6 - 2
artisan

@@ -28,8 +28,10 @@ $app = require_once __DIR__.'/bootstrap/app.php';
 |
 */
 
-$status = $app->make('Illuminate\Contracts\Console\Kernel')->handle(
-	new Symfony\Component\Console\Input\ArgvInput,
+$kernel = $app->make('Illuminate\Contracts\Console\Kernel');
+
+$status = $kernel->handle(
+	$input = new Symfony\Component\Console\Input\ArgvInput,
 	new Symfony\Component\Console\Output\ConsoleOutput
 );
 
@@ -44,4 +46,6 @@ $status = $app->make('Illuminate\Contracts\Console\Kernel')->handle(
 |
 */
 
+$kernel->terminate($input, $status);
+
 exit($status);