Esempio n. 1
0
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function fire()
 {
     restore_error_handler();
     restore_exception_handler();
     $this->app->error(function () {
         return '';
     });
     if ($configFile = $this->option('config')) {
         array_set($this->config, 'configuration.configFile', $configFile);
     }
     $configuration = new LaravelConfiguration($this->config['configuration']);
     $configuration->addPresenters($this->presenters());
     $this->shell = new LaravelShell($configuration, $this->app);
     $this->shell->setIncludes($this->argument('include'));
     $this->shell->addCommands($this->commands());
     $this->shell->addContributors($this->contributors());
     $this->shell->run();
 }