protected function _load($config, $path, $prefix = '')
    {
        if (file_exists($path)) {
            $config->load($path, $prefix);
        }

        $localConfig = preg_replace('/(.*)\.ini$/', '$1.local.ini', $path);
        if (file_exists($localConfig)) {
            $config->load($localConfig, $prefix);
        }
    }
protected function _load($config, $path, $prefix = '')
    {
        if (file_exists($path)) {
            $config->load($path, $prefix);
        }

        $localConfig = preg_replace('/(.*)\.ini$/', '$1.local.ini', $path);
        if (file_exists($localConfig)) {
            $config->load($localConfig, $prefix);
        }
    }
protected function _load ( $ config , $ path , $ prefix = '' ) { if ( file_exists ( $ path ) ) { $ config -> load ( $ path , $ prefix ) ; } $ localConfig = preg_replace ( '/(.*)\.ini$/' , '$1.local.ini' , $ path ) ; if ( file_exists ( $ localConfig ) ) { $ config -> load ( $ localConfig , $ prefix ) ; } }
Load a config file and its `.local` file if it exists.

@param \MiniAsset\AssetConfig $config The config object to update.
@param string $path The config file to load.
@param string $prefix The prefix to use.
@return void
Load a config file and its . local file if it exists .