ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Agent.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use ILIAS\Setup;
25use LogicException;
29
30class Agent implements Setup\Agent
31{
32 use Setup\Agent\HasNoNamedObjective;
33
34 public function hasConfig(): bool
35 {
36 return false;
37 }
38
40 {
41 throw new LogicException('Agent has no config.');
42 }
43
44 public function getInstallObjective(?Setup\Config $config = null): Setup\Objective
45 {
47 }
48
49 public function getUpdateObjective(?Setup\Config $config = null): Setup\Objective
50 {
53 );
54 }
55
57 {
59 }
60
61 public function getStatusObjective(Setup\Metrics\Storage $storage): Setup\Objective
62 {
64 }
65
66 public function getMigrations(): array
67 {
68 return [];
69 }
70
71 public function getBuildObjective(): Objective
72 {
74 }
75}
getBuildObjective()
Get the goal the agent wants to achieve to build artifacts.
Definition: Agent.php:71
getInstallObjective(?Setup\Config $config=null)
Definition: Agent.php:44
hasConfig()
Does this agent require a configuration?
Definition: Agent.php:34
getArrayToConfigTransformation()
Agents must be able to tell how to create a configuration from a nested array.
Definition: Agent.php:39
getUpdateObjective(?Setup\Config $config=null)
Definition: Agent.php:49
getMigrations()
Get a named map of migrations available for this Agent.
Definition: Agent.php:66
getStatusObjective(Setup\Metrics\Storage $storage)
Definition: Agent.php:61
A non-objective, nothing to do to achieve it...
This class attempt to achieve a set of database update steps.
A transformation is a function from one datatype to another.
A configuration for the setup.
Definition: Config.php:27
An objective is a desired state of the system that is supposed to be created by the setup.
Definition: Objective.php:31
Storage is simple key/value store without further schema definition.
Definition: Storage.php:30
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...