コード例 #1
0
 /**
  * Refresh the application instance.
  *
  * @return void
  */
 protected function refreshApplication()
 {
     $this->app = $this->createApplication();
     $this->client = $this->createClient();
     $this->app->setRequestForConsoleEnvironment();
     $this->app->boot();
 }
コード例 #2
0
ファイル: Application.php プロジェクト: nova-framework/system
 /**
  * Create a new Console application.
  *
  * @param  \Nova\Foundation\Application  $app
  * @return \Nova\Console\Application
  */
 public static function make($app)
 {
     $app->boot();
     $console = with($console = new static('Nova Framework', $app::VERSION))->setNova($app)->setExceptionHandler($app['exception'])->setAutoExit(false);
     $app->instance('forge', $console);
     return $console;
 }