ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ImprintUpdateAgent.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use ILIAS\Setup;
25use LogicException;
27
29{
30 use Setup\Agent\HasNoNamedObjective;
31
32 public function hasConfig(): bool
33 {
34 return false;
35 }
36
38 {
39 throw new LogicException('Agent has no config.');
40 }
41
42 public function getInstallObjective(?Setup\Config $config = null): Setup\Objective
43 {
45 }
46
47 public function getUpdateObjective(?Setup\Config $config = null): Setup\Objective
48 {
50 'impr',
51 'Legal Notice'
52 ));
53 }
54
56 {
58 }
59
60 public function getStatusObjective(Setup\Metrics\Storage $storage): Setup\Objective
61 {
63 }
64
65 public function getMigrations(): array
66 {
67 return [];
68 }
69}
getMigrations()
Get a named map of migrations available for this Agent.
getArrayToConfigTransformation()
Agents must be able to tell how to create a configuration from a nested array.
getUpdateObjective(?Setup\Config $config=null)
getInstallObjective(?Setup\Config $config=null)
getBuildObjective()
Get the goal the agent wants to achieve to build artifacts.
getStatusObjective(Setup\Metrics\Storage $storage)
hasConfig()
Does this agent require a configuration?
A non-objective, nothing to do to achieve it...
A transformation is a function from one datatype to another.
A agent is some component that performs part of the setup process.
Definition: Agent.php:30
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...