상속: extends Illuminate\Console\Application
 /**
  * Register any application services.
  */
 public function register()
 {
     $this->mergeConfigFrom(__DIR__ . '/../config/terminal.php', 'terminal');
     $this->app->singleton(Application::class, function ($app) {
         $config = $app['config'];
         $commands = $config['terminal.commands'];
         $artisan = new Application($app, $app['events'], $app->version());
         $artisan->resolveCommands($commands);
         return $artisan;
     });
     $this->app->singleton(Kernel::class, Kernel::class);
 }
 /**
  * Register any application services.
  */
 public function register()
 {
     $this->mergeConfigFrom(__DIR__ . '/../config/terminal.php', 'terminal');
     $this->app->singleton(Application::class, function ($app) {
         $config = $app['config']['terminal'];
         $commands = $config['commands'];
         $artisan = new Application($app, $app['events'], $app->version());
         $artisan->resolveCommands($commands);
         return $artisan;
     });
     $this->app->singleton(Kernel::class, Kernel::class);
     $this->app->singleton(TerminalManager::class, function ($app) {
         $config = Arr::get($app['config'], 'terminal', []);
         $config = array_merge($config, ['basePath' => $app->basePath(), 'environment' => $app->environment(), 'version' => $app->version(), 'endpoint' => $app['url']->route(Arr::get($config, 'route.as') . 'endpoint')]);
         return new TerminalManager($app->make(Kernel::class), $config);
     });
 }