39             throw new \LogicException(
"\$this->config_reader not properly initialized.");
    46         $config_file = $input->getArgument(
"config");
    48             throw new \LogicException(
"Thou shall not put your config file in the webroot!!");
    51         $config_overwrites_raw = $input->getOption(
"config");
    52         $config_overwrites = [];
    53         foreach ($config_overwrites_raw as $o) {
    54             $vs = explode(
"=", $o);
    55             if (count($vs) !== 2) {
    56                 throw new \Exception(
"Cannot read config-option: '$o'");
    58             $config_overwrites[$vs[0]] = $vs[1];
    61         $config_content = $this->config_reader->readConfigFile($config_file, $config_overwrites);
    62         if ($use_config_field !== null) {
    63             $config_content = $config_content[$use_config_field] ?? null;
    67         return $trafo->transform($config_content);
    76             foreach ($config->getKeys() as $k) {
    77                 $environment = $environment->
withConfigFor($k, $config->getConfig($k));
    86         $webroot = realpath(__DIR__ . 
"/../../../");
    87         $config_file = realpath($config_file);
    89         $common_prefix = substr($config_file, 0, strlen($webroot));
    90         return $webroot === $common_prefix;
 Read a json-formatted config from a file and overwrite some fields. 
 
getArrayToConfigTransformation()
Agents must be able to tell how to create a configuration from a nested array. 
 
An agent that is just a collection of some other agents. 
 
isConfigInRoot(string $config_file)
 
A agent is some component that performs part of the setup process. 
 
hasConfig()
Does this agent require a configuration? 
 
addAgentConfigsToEnvironment(Agent $agent, Config $config, Environment $environment)
 
readAgentConfig(Agent $agent, InputInterface $input, string $use_config_field=null)
 
withConfigFor(string $component, $config)
Stores a config for some component in the environment. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
An environment holds resources to be used in the setup process. 
 
A configuration for the setup. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...