PHP 클래스 Mmoreram\PHPFormatter\Loader\ConfigLoader

파일 보기 프로젝트 열기: mmoreram/php-formatter 1 사용 예제들

공개 메소드들

메소드 설명
loadConfigValue ( string $commandName, array $configValues, array $commandValue = null, array $defaultValue = null ) : array This method parses the config file, if exists, and determines the real option value.
loadConfigValues ( string $commandName, array $configValues, array $commandValues = [], array $defaultValues = [] ) : array This method parses the config file, if exists, and determines the real options values.

메소드 상세

loadConfigValue() 공개 메소드

* If an option is defined as a command parameter, this will be used * Otherwise, if an option is defined in the configuration file, this will be used. * Otherwise, default values will be used
public loadConfigValue ( string $commandName, array $configValues, array $commandValue = null, array $defaultValue = null ) : array
$commandName string Command called
$configValues array Config values
$commandValue array Value defined in command
$defaultValue array Default value to use if this is not defined
리턴 array $usableValues Usable values

loadConfigValues() 공개 메소드

* If an option is defined as a command parameter, this will be used * Otherwise, if an option is defined in the configuration file, this will be used. * Otherwise, default values will be used
public loadConfigValues ( string $commandName, array $configValues, array $commandValues = [], array $defaultValues = [] ) : array
$commandName string Command called
$configValues array Config values
$commandValues array Values defined in command
$defaultValues array Default values to use if these are not defined
리턴 array $usableValues Usable values