Method | Description | |
---|---|---|
__construct ( string $path ) | ||
extract_assoc ( $arguments ) : array(array) | Splits positional args from associative args. | |
get_aliases ( ) : array | Get any aliases defined in config files. | |
get_spec ( ) : array | Get configuration specification, i.e. list of accepted keys. | |
merge_array ( array $config ) | Merge an array of values into the configurator config. | |
merge_yml ( string $path, $current_alias = null ) | Load a YAML file of parameters into scope. | |
parse_args ( $arguments ) : array(array) | Splits a list of arguments into positional, associative and config. | |
to_array ( ) : array | Get declared configuration values as an array. |
Method | Description | |
---|---|---|
absolutize ( string &$path, string $base ) | Make a path absolute. | |
arrayify ( mixed &$val ) | Conform a variable to an array. | |
assoc_arg_to_runtime_config ( $key, $value, &$runtime_config ) | Handle turning an $assoc_arg into a runtime arg. | |
load_yml ( string $yml_file ) : array | Load values from a YAML file. | |
unmix_assoc_args ( array $mixed_args, $global_assoc = [], $local_assoc = [] ) : array | Separate runtime parameters from command-specific parameters. |
public __construct ( string $path ) | ||
$path | string | Path to config spec file. |
public static extract_assoc ( $arguments ) : array(array) | ||
return | array(array) |
public get_aliases ( ) : array | ||
return | array |
public merge_array ( array $config ) | ||
$config | array |
public parse_args ( $arguments ) : array(array) | ||
return | array(array) |