Browse Source

fire app shutdown event.

Taylor Otwell 11 years ago
parent
commit
2a14998be9
2 changed files with 26 additions and 0 deletions
  1. 13 0
      artisan
  2. 13 0
      public/index.php

+ 13 - 0
artisan

@@ -57,3 +57,16 @@ $artisan = Illuminate\Console\Application::start($app);
 */
 
 $artisan->run();
+
+/*
+|--------------------------------------------------------------------------
+| 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.
+|
+*/
+
+$app->shutdown();

+ 13 - 0
public/index.php

@@ -49,3 +49,16 @@ $app = require_once __DIR__.'/../bootstrap/start.php';
 */
 
 $app->run();
+
+/*
+|--------------------------------------------------------------------------
+| 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.
+|
+*/
+
+$app->shutdown();