PHP Класс N98\Magento\Application\ConfigLocator

Has all the information encoded to retrieve the various config files
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( string $configFilename, string $magentoRootFolder ) ConfigLocator constructor.
getProjectConfigFile ( ) : ConfigFile | null Obtain the project-config-file, it is placed in the magento app/etc dir, e.g. app/etc/n98-magerun2.yaml
getStopFileConfigFile ( string $magerunStopFileFolder ) : ConfigFile | null Obtain the (optional) stop-file-config-file, it is placed in the folder of the stop-file, always prefixed with a dot: stop-file-folder/.n98-magerun2.yaml
getUserConfigFile ( ) : ConfigFile | null Obtain the user-config-file, it is placed in the homedir, e.g. ~/.n98-magerun2.yaml

Приватные методы

Метод Описание
getUserConfigFilePaths ( ) : array

Описание методов

__construct() публичный Метод

ConfigLocator constructor.
public __construct ( string $configFilename, string $magentoRootFolder )
$configFilename string
$magentoRootFolder string

getProjectConfigFile() публичный Метод

Obtain the project-config-file, it is placed in the magento app/etc dir, e.g. app/etc/n98-magerun2.yaml
public getProjectConfigFile ( ) : ConfigFile | null
Результат ConfigFile | null

getStopFileConfigFile() публичный Метод

Obtain the (optional) stop-file-config-file, it is placed in the folder of the stop-file, always prefixed with a dot: stop-file-folder/.n98-magerun2.yaml
public getStopFileConfigFile ( string $magerunStopFileFolder ) : ConfigFile | null
$magerunStopFileFolder string
Результат ConfigFile | null

getUserConfigFile() публичный Метод

Obtain the user-config-file, it is placed in the homedir, e.g. ~/.n98-magerun2.yaml
public getUserConfigFile ( ) : ConfigFile | null
Результат ConfigFile | null