示例#1
0
 /**
  * Get the Artisan application instance.
  *
  * @return \Notadd\Foundation\Console\Application
  */
 public function getArtisan()
 {
     if (is_null($this->artisan)) {
         return $this->artisan = (new Artisan($this->app, $this->events, $this->app->version()))->resolveCommands($this->commands);
     }
     return $this->artisan;
 }