Kraken\Runtime\Command\CommandManager::execute PHP Method

execute() public method

public execute ( $name, $params = [] )
    public function execute($name, $params = [])
    {
        $command = $this->get($name);
        if ($command === null) {
            throw new ExecutionException("Command [{$name}] is not registered.");
        }
        return $command->execute($params);
    }