Kraken\Root\Console\Server\Provider\CommandProvider::getDefaultCommands PHP Метод

getDefaultCommands() защищенный Метод

protected getDefaultCommands ( Kraken\Runtime\RuntimeContainerInterface $runtime ) : Kraken\Runtime\Command\CommandInterface[]
$runtime Kraken\Runtime\RuntimeContainerInterface
Результат Kraken\Runtime\Command\CommandInterface[]
    protected function getDefaultCommands(RuntimeContainerInterface $runtime)
    {
        $cmds = ['project:create' => 'Kraken\\Console\\Server\\Command\\Project\\ProjectCreateCommand', 'project:destroy' => 'Kraken\\Console\\Server\\Command\\Project\\ProjectDestroyCommand', 'project:start' => 'Kraken\\Console\\Server\\Command\\Project\\ProjectStartCommand', 'project:stop' => 'Kraken\\Console\\Server\\Command\\Project\\ProjectStopCommand', 'project:status' => 'Kraken\\Console\\Server\\Command\\Project\\ProjectStatusCommand', 'server:ping' => 'Kraken\\Console\\Server\\Command\\Server\\ServerPingCommand'];
        foreach ($cmds as $key => $class) {
            $cmds[$key] = $this->create($class, [['runtime' => $runtime]]);
        }
        return $cmds;
    }