ILIAS
trunk Revision v11.0_alpha-1811-gd2d5443e411
|
Read a json-formatted config from a file and overwrite some fields. More...
Public Member Functions | |
__construct (JsonParser $json_parser, ?string $base_dir=null) | |
readConfigFile (string $name, array $overwrites=[]) | |
TODO: We could use the "give me a transformation and I'll give you your
result" pattern from the input paper here. More... | |
Protected Member Functions | |
applyOverwrites (array $json, array $overwrites) | |
getRealFilename (string $name) | |
Protected Attributes | |
JsonParser | $json_parser |
string | $base_dir |
Read a json-formatted config from a file and overwrite some fields.
Definition at line 35 of file ConfigReader.php.
ILIAS\Setup\CLI\ConfigReader::__construct | ( | JsonParser | $json_parser, |
?string | $base_dir = null |
||
) |
Definition at line 40 of file ConfigReader.php.
References ILIAS\Setup\CLI\ConfigReader\$json_parser.
|
protected |
Definition at line 76 of file ConfigReader.php.
Referenced by ILIAS\Setup\CLI\ConfigReader\readConfigFile().
|
protected |
Definition at line 96 of file ConfigReader.php.
Referenced by ILIAS\Setup\CLI\ConfigReader\readConfigFile().
ILIAS\Setup\CLI\ConfigReader::readConfigFile | ( | string | $name, |
array | $overwrites = [] |
||
) |
TODO: We could use the "give me a transformation and I'll give you your result" pattern from the input paper here.
array | $overwrites | is a list of fields that should be overwritten with with the contained variables. The keys define which field (e.g. "a.b.c") should be overwritten with which value. |
Definition at line 55 of file ConfigReader.php.
References ILIAS\Setup\CLI\ConfigReader\applyOverwrites(), and ILIAS\Setup\CLI\ConfigReader\getRealFilename().
|
protected |
Definition at line 38 of file ConfigReader.php.
|
protected |
Definition at line 37 of file ConfigReader.php.
Referenced by ILIAS\Setup\CLI\ConfigReader\__construct().