Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct ($name, $pattern=self::DEFAULT_PATTERN) | |
getFromArray ($input) | |
getFromString ($string) | |
mergeFromArgv ($server, array $into=[]) | |
Data Fields | |
const | DEFAULT_PATTERN = '/^\-\-%s=(.+)$/' |
A parser for complex parameters in command-line arguments
Transforms parameter formatted as a URL query string into an array
Definition at line 14 of file ComplexParameter.php.
__construct | ( | $name, | |
$pattern = self::DEFAULT_PATTERN |
|||
) |
Constructor
string | $name | |
string | $pattern |
Definition at line 41 of file ComplexParameter.php.
getFromArray | ( | $input | ) |
Searches and parses the value from an array of arguments
string[] | $input |
Definition at line 53 of file ComplexParameter.php.
getFromString | ( | $string | ) |
Parses the value from a specified argument string
string | $string |
Definition at line 70 of file ComplexParameter.php.
mergeFromArgv | ( | $server, | |
array | $into = [] |
||
) |
Searches the value parameter in an "argv" array and merges it recursively into specified array
array | $server | |
array | $into |
Definition at line 86 of file ComplexParameter.php.
const DEFAULT_PATTERN = '/^\-\-%s=(.+)$/' |
Default regex pattern for searching the parameter
Definition at line 19 of file ComplexParameter.php.