public resolveCommands ( array | mixed $commands ) | ||
$commands | array | mixed |
public function resolveCommands($commands)
{
if ($this->isFromArtisanStartingEvent() === true) {
return $this;
}
return parent::resolveCommands($commands);
}
/** * 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); }