20 protected $config_reader;
25 throw new \LogicException(
"\$this->config_reader not properly initialized.");
32 $config_file = $input->getArgument(
"config");
33 $config_overwrites_raw = $input->getOption(
"config");
34 $config_overwrites = [];
35 foreach ($config_overwrites_raw as $o) {
36 $vs = explode(
"=", $o);
37 if (count($vs) !== 2) {
38 throw new \Exception(
"Cannot read config-option: '$o'");
40 $config_overwrites[$vs[0]] = $vs[1];
43 $config_content = $this->config_reader->readConfigFile($config_file, $config_overwrites);
46 return $trafo->transform($config_content);
55 foreach ($config->getKeys() as $k) {
56 $environment = $environment->
withConfigFor($k, $config->getConfig($k));
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.
A agent is some component that performs part of the setup process.
readAgentConfig(Agent $agent, InputInterface $input)
hasConfig()
Does this agent require a configuration?
addAgentConfigsToEnvironment(Agent $agent, Config $config, Environment $environment)
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.