public function getConfig($configKey = null)
    {
        $default = clone $this->config->configs->default;

        if (null !== $configKey) {
            $default->merge(clone $this->config->configs->{$configKey});
        }

        return $default->toArray();
    }
public function getConfig($configKey = null)
    {
        $default = clone $this->config->configs->default;

        if (null !== $configKey) {
            $default->merge(clone $this->config->configs->{$configKey});
        }

        return $default->toArray();
    }
public function getConfig ( $ configKey = null ) { $ default = clone $ this -> config -> configs -> default ; if ( null !== $ configKey ) { $ default -> merge ( clone $ this -> config -> configs -> { $ configKey } ) ; } return $ default -> toArray ( ) ; }
Get the default config, merged with an option overriding config.

@param   string  $configKey

@return  array   The merged configuration
Get the default config merged with an option overriding config .