ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Environment.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Setup;
22
27interface Environment
28{
29 // We define some resources that will definitely be requried. We allow for
30 // new identifiers, though, to be open for extensions and the future.
31 public const RESOURCE_DATABASE = "resource_database";
32 public const RESOURCE_ADMIN_INTERACTION = "resource_admin_interaction";
33 public const RESOURCE_ILIAS_INI = "resource_ilias_ini";
34 public const RESOURCE_CLIENT_INI = "resource_client_ini";
35 public const RESOURCE_SETTINGS_FACTORY = "resource_settings_factory";
36 public const RESOURCE_CLIENT_ID = "resource_client_id";
37 public const RESOURCE_PLUGIN_ADMIN = "resource_plugin_admin";
38 public const RESOURCE_COMPONENT_REPOSITORY = "resource_component_repository";
39 public const RESOURCE_COMPONENT_FACTORY = "resource_component_factory";
40
47 public function getResource(string $id);
48
52 public function withResource(string $id, $resource): Environment;
53
59 public function withConfigFor(string $component, $config): Environment;
60
65 public function getConfigFor(string $component);
66 public function hasConfigFor(string $component): bool;
67}
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
An environment holds resources to be used in the setup process.
Definition: Environment.php:28
hasConfigFor(string $component)
getConfigFor(string $component)
getResource(string $id)
Consumers of this method should check if the result is what they expect, e.g.
withResource(string $id, $resource)
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...