public function mergeConfig($resources)
    {
        $configs = array();
        foreach (is_array($resources) ? $resources : func_get_args() as $resource) {
            $configs = ArrayUtils::merge($configs, $this->loadConfig($resource));
        }

        return $configs;
    }
public function mergeConfig($resources)
    {
        $configs = array();
        foreach (is_array($resources) ? $resources : func_get_args() as $resource) {
            $configs = ArrayUtils::merge($configs, $this->loadConfig($resource));
        }

        return $configs;
    }
public function mergeConfig ( $ resources ) { $ configs = array ( ) ; foreach ( is_array ( $ resources ) ? $ resources : func_get_args ( ) as $ resource ) { $ configs = ArrayUtils :: merge ( $ configs , $ this -> loadConfig ( $ resource ) ) ; } return $ configs ; }
Loads and merges the configuration.

@param mixed $resources

@return array
Loads and merges the configuration .