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.
Exibir arquivo
Open project: markstory/asset_compress
Class Usage Examples
Public Methods
Method |
Description |
|
loadAll ( string $path = null ) : AssetConfig |
Load all configuration files in the application. |
|
Protected Methods
Method |
Description |
|
_load ( AssetConfig $config, string $path, string $prefix = '' ) : void |
Load a config file and its .local file if it exists. |
|
Method Details
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 |
|
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. |
return |
MiniAsset\AssetConfig |
The completed configuration object. |