AssetCompress\Config\ConfigFinder::_load PHP Method

_load() protected method

Load a config file and its .local file if it exists.
protected _load ( AssetConfig $config, string $path, string $prefix = '' ) : void
$config MiniAsset\AssetConfig The config object to update.
$path string The config file to load.
$prefix string The prefix to use.
return void
    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);
        }
    }
ConfigFinder