Kraken\Root\Runtime\Provider\CommandProvider::getAppCommands PHP Метод

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

protected getAppCommands ( Kraken\Config\ConfigInterface $config, Kraken\Runtime\Command\CommandFactoryInterface $factory, Kraken\Runtime\RuntimeContainerInterface $runtime ) : Kraken\Runtime\Command\CommandInterface[]
$config Kraken\Config\ConfigInterface
$factory Kraken\Runtime\Command\CommandFactoryInterface
$runtime Kraken\Runtime\RuntimeContainerInterface
Результат Kraken\Runtime\Command\CommandInterface[]
    protected function getAppCommands(ConfigInterface $config, CommandFactoryInterface $factory, RuntimeContainerInterface $runtime)
    {
        $cmds = (array) $config->get('command.commands');
        $commands = [];
        foreach ($cmds as $name => $command) {
            $commands[$name] = $factory->create($command, [['runtime' => $runtime]]);
        }
        return $commands;
    }