public function loadAll($path = null)
    {
        if (!$path) {
            $path = CONFIG . 'asset_compress.ini';
        }
        $config = new AssetConfig([], [
            'WEBROOT' => WWW_ROOT,
        ]);
        $this->_load($config, $path);

        $plugins = Plugin::loaded();
        foreach ($plugins as $plugin) {
            $pluginConfig = Plugin::path($plugin) . 'config' . DS . 'asset_compress.ini';
            $this->_load($config, $pluginConfig, $plugin . '.');
        }

        return $config;
    }
public function loadAll($path = null)
    {
        if (!$path) {
            $path = CONFIG . 'asset_compress.ini';
        }
        $config = new AssetConfig([], [
            'WEBROOT' => WWW_ROOT,
        ]);
        $this->_load($config, $path);

        $plugins = Plugin::loaded();
        foreach ($plugins as $plugin) {
            $pluginConfig = Plugin::path($plugin) . 'config' . DS . 'asset_compress.ini';
            $this->_load($config, $pluginConfig, $plugin . '.');
        }

        return $config;
    }
public function loadAll ( $ path = null ) { if ( ! $ path ) { $ path = CONFIG . 'asset_compress.ini' ; } $ config = new AssetConfig ( [ ] , [ 'WEBROOT' => WWW_ROOT , ] ) ; $ this -> _load ( $ config , $ path ) ; $ plugins = Plugin :: loaded ( ) ; foreach ( $ plugins as $ plugin ) { $ pluginConfig = Plugin :: path ( $ plugin ) . 'config' . DS . 'asset_compress.ini' ; $ this -> _load ( $ config , $ pluginConfig , $ plugin . '.' ) ; } return $ config ; }
Load all configuration files in the application.

Loads:

- The app config (asset_compress.ini)
- The asset_compress.ini file in each plugin.

In addition for each file found the `asset_compress.local.ini`
will be loaded if it is present.

@param string $path The configuration file path to start loading from.
@return \MiniAsset\AssetConfig The completed configuration object.
Load all configuration files in the application .