protected function getCommandConfig($commandKey)
    {
        if (isset($this->configsPerCommandKey[$commandKey])) {
            return $this->configsPerCommandKey[$commandKey];
        }
        $config = new Config($this->config->get('default')->toArray(), true);
        if ($this->config->__isset($commandKey)) {
            $commandConfig = $this->config->get($commandKey);
            $config->merge($commandConfig);
        }
        $this->configsPerCommandKey[$commandKey] = $config;
        return $config;
    }
protected function getCommandConfig($commandKey)
    {
        if (isset($this->configsPerCommandKey[$commandKey])) {
            return $this->configsPerCommandKey[$commandKey];
        }
        $config = new Config($this->config->get('default')->toArray(), true);
        if ($this->config->__isset($commandKey)) {
            $commandConfig = $this->config->get($commandKey);
            $config->merge($commandConfig);
        }
        $this->configsPerCommandKey[$commandKey] = $config;
        return $config;
    }
protected function getCommandConfig ( $ commandKey ) { if ( isset ( $ this -> configsPerCommandKey [ $ commandKey ] ) ) { return $ this -> configsPerCommandKey [ $ commandKey ] ; } $ config = new Config ( $ this -> config -> get ( 'default' ) -> toArray ( ) , true ) ; if ( $ this -> config -> __isset ( $ commandKey ) ) { $ commandConfig = $ this -> config -> get ( $ commandKey ) ; $ config -> merge ( $ commandConfig ) ; } $ this -> configsPerCommandKey [ $ commandKey ] = $ config ; return $ config ; }
Gets the config for given command key

@param string $commandKey
@return Config
Gets the config for given command key