19declare(strict_types=1);
59 throw new \RuntimeException(
60 "Resource '$id' is already contained in the environment"
64 $clone->resources[
$id] = $resource;
73 if (isset($this->configs[$component])) {
74 throw new \RuntimeException(
75 "Config for '$component' is already contained in the environment"
79 $clone->configs[$component] = $config;
88 if (!isset($this->configs[$component])) {
89 throw new \RuntimeException(
90 "Config for '$component' is not contained in the environment"
93 return $this->configs[$component];
101 return isset($this->configs[$component]);
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
__construct(array $resources)
withResource(string $id, $resource)
RuntimeException if this resource is already in the environment.
withConfigFor(string $component, $config)
Stores a config for some component in the environment.RuntimeException if this config is already in t...
getResource(string $id)
Consumers of this method should check if the result is what they expect, e.g.implements some known in...
hasConfigFor(string $component)
getConfigFor(string $component)
RuntimeException if there is no config for the component mixed
An environment holds resources to be used in the setup process.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...