Example #1
0
 /**
  * Kernel constructor.
  *
  * @param \Illuminate\Contracts\Foundation\Application $app
  * @param \Illuminate\Contracts\Events\Dispatcher      $events
  */
 public function __construct(Application $app, Dispatcher $events)
 {
     if (!defined('ARTISAN_BINARY')) {
         define('ARTISAN_BINARY', 'artisan');
     }
     $this->app = $app;
     $this->events = $events;
     $this->app->booted(function () {
         $this->defineConsoleSchedule();
     });
 }