PHP Class AssetCompress\Config\ConfigFinder

The app and each plugin could have config files, in addition for each config file that is found, also look for a .local file for additional overrides.
Afficher le fichier Open project: markstory/asset_compress Class Usage Examples

Méthodes publiques

Méthode Description
loadAll ( string $path = null ) : AssetConfig Load all configuration files in the application.

Méthodes protégées

Méthode Description
_load ( AssetConfig $config, string $path, string $prefix = '' ) : void Load a config file and its .local file if it exists.

Method Details

_load() protected méthode

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.
Résultat void

loadAll() public méthode

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.
public loadAll ( string $path = null ) : AssetConfig
$path string The configuration file path to start loading from.
Résultat MiniAsset\AssetConfig The completed configuration object.