Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct ($baseDir, array $settings) | |
get ($settingName, $defaultValue=null) | |
getAsBoolean ($settingName) | |
getAsFile ($settingName, $defaultValue='') | |
getAsConfigFile ($settingName) | |
getAsMatchingPaths ($settingName) | |
Protected Member Functions | |
_resolvePath ($relativePath) | |
_resolvePathPattern ($pattern) | |
Convenient access to the bootstrap settings
Definition at line 14 of file Settings.php.
__construct | ( | $baseDir, | |
array | $settings | ||
) |
Constructor
string | $baseDir | |
array | $settings |
Definition at line 37 of file Settings.php.
|
protected |
Return an absolute path by a relative one without checking its validity
string | $relativePath |
Definition at line 130 of file Settings.php.
|
protected |
Resolve semicolon-separated relative glob pattern(s) to matched absolute paths
string | $pattern |
Definition at line 141 of file Settings.php.
get | ( | $settingName, | |
$defaultValue = null |
|||
) |
Retrieve a setting value as is
string | $settingName | |
mixed | $defaultValue |
Definition at line 53 of file Settings.php.
getAsBoolean | ( | $settingName | ) |
Interpret a setting value as a switch and return TRUE when it equals to the string "enabled" or FALSE otherwise
string | $settingName |
Definition at line 65 of file Settings.php.
getAsConfigFile | ( | $settingName | ) |
Interpret a setting value as a file optionally falling back to the '.dist' file and return absolute path to it
string | $settingName |
Definition at line 93 of file Settings.php.
getAsFile | ( | $settingName, | |
$defaultValue = '' |
|||
) |
Interpret a setting value as a relative file name and return absolute path to it
string | $settingName | |
string | $defaultValue |
Definition at line 77 of file Settings.php.
getAsMatchingPaths | ( | $settingName | ) |
Interpret a setting value as a semicolon-separated relative glob pattern(s) and return matched absolute paths
string | $settingName |
Definition at line 115 of file Settings.php.