/** * Refresh the application instance. * * @return void */ protected function refreshApplication() { $this->app = $this->createApplication(); $this->client = $this->createClient(); $this->app->setRequestForConsoleEnvironment(); $this->app->boot(); }
/** * 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; }