/** * 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); }
/** * 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); }
/** * 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; }