Recca0120\Terminal\Application::resolveCommands PHP Method

resolveCommands() public method

Resolve an array of commands through the application.
public resolveCommands ( array | mixed $commands )
$commands array | mixed
    public function resolveCommands($commands)
    {
        if ($this->isFromArtisanStartingEvent() === true) {
            return $this;
        }
        return parent::resolveCommands($commands);
    }

Usage Example

 /**
  * 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);
 }
All Usage Examples Of Recca0120\Terminal\Application::resolveCommands