/**
  * Resolve an array of commands through the application.
  *
  * @param array|mixed $commands
  *
  * @return $this
  */
 public function resolveCommands($commands)
 {
     if ($this->isFromArtisanStartingEvent() === true) {
         return $this;
     }
     return parent::resolveCommands($commands);
 }
Example #2
0
 /**
  * Resolve an array of commands through the application.
  *
  * @param array|mixed $commands
  * @return void 
  * @static 
  */
 public static function resolveCommands($commands)
 {
     \Illuminate\Console\Application::resolveCommands($commands);
 }
Example #3
0
 /**
  * Get the Artisan application instance.
  *
  * @return \Illuminate\Console\Application
  */
 protected function getArtisan()
 {
     if (is_null($this->artisan)) {
         $art = new Artisan($this->app, $this->events, $this->app->version());
         return $this->artisan = $art->resolveCommands($this->commands);
     }
     return $this->artisan;
 }