ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
Agent.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
21 namespace ILIAS\Setup;
22 
24 use ILIAS\UI;
25 
29 interface Agent
30 {
34  public function hasConfig(): bool;
35 
42  public function getArrayToConfigTransformation(): Transformation;
43 
52  public function getInstallObjective(Config $config = null): Objective;
53 
70  public function getUpdateObjective(Config $config = null): Objective;
71 
77  public function getBuildObjective(): Objective;
78 
89  public function getStatusObjective(Metrics\Storage $storage): Objective;
90 
98  public function getMigrations(): array;
99 
109  public function getNamedObjectives(?Config $config = null): array;
110 }
getStatusObjective(Metrics\Storage $storage)
Get the objective to be achieved when status is requested.
getArrayToConfigTransformation()
Agents must be able to tell how to create a configuration from a nested array.
getNamedObjectives(?Config $config=null)
Gets all named objectives The keys of the returned array are the commands.
getInstallObjective(Config $config=null)
Get the goals the agent wants to achieve on setup.
A agent is some component that performs part of the setup process.
Definition: Agent.php:29
hasConfig()
Does this agent require a configuration?
getUpdateObjective(Setup\Config $config=null)
Definition: class.Agent.php:28
getBuildObjective()
Get the goal the agent wants to achieve to build artifacts.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...