src/ServiceProvider/src/AbstractServiceProvider.php
protected function provideCommands(string ...$commandClasses)
    {
        /** @var CommandCollection $commandCollector */
        $commandCollector = $this->container->get(CommandCollection::class);
        foreach ($commandClasses as $commandClass) {
            $commandCollector->add($commandClass);
        }
    }
protected function provideCommands(string ...$commandClasses)
    {
        /** @var CommandCollection $commandCollector */
        $commandCollector = $this->container->get(CommandCollection::class);
        foreach ($commandClasses as $commandClass) {
            $commandCollector->add($commandClass);
        }
    }
protected function provideCommands ( string ... $ commandClasses ) { /** @var CommandCollection $commandCollector */ $ commandCollector = $ this -> container -> get ( CommandCollection :: class ) ; foreach ( $ commandClasses as $ commandClass ) { $ commandCollector -> add ( $ commandClass ) ; } }
Registers commands exposed by service provider.

@param string[] ...$commandClasses
Registers commands exposed by service provider .