PHP Класс 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.
Показать файл
Открыть проект
Примеры использования класса
Открытые методы
Метод |
Описание |
|
loadAll ( string $path = null ) : AssetConfig |
Load all configuration files in the application. |
|
Защищенные методы
Метод |
Описание |
|
_load ( AssetConfig $config, string $path, string $prefix = '' ) : void |
Load a config file and its .local file if it exists. |
|
Описание методов
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. |
Результат |
void |
|
loadAll()
публичный Метод
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. |
Результат |
MiniAsset\AssetConfig |
The completed configuration object. |