ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
Agent.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 use ILIAS\Setup;
28 
32 class Agent implements Setup\Agent
33 {
35  {
36  return new Setup\ObjectiveCollection(
37  'File StreamDelivery Artifacts',
38  true,
41  // new BaseDirObjective() // removed objective since it's not possible to run it in some environments
42  );
43  }
44 
45  public function getNamedObjectives(?Config $config = null): array
46  {
47  return [];
48  }
49 
50  public function hasConfig(): bool
51  {
52  return false;
53  }
54 
56  {
57  throw new LogicException("No Config");
58  }
59 
60  public function getInstallObjective(Config $config = null): Objective
61  {
62  return new DeliveryMethodObjective();
63  }
64 
65  public function getUpdateObjective(Config $config = null): Objective
66  {
67  return new DeliveryMethodObjective();
68  }
69 
70  public function getStatusObjective(Metrics\Storage $storage): Objective
71  {
72  return new Objective\NullObjective();
73  }
74 
75  public function getMigrations(): array
76  {
77  return [];
78  }
79 }
A objective collection is a objective that is achieved once all subobjectives are achieved...
getUpdateObjective(Config $config=null)
Get the goal the agent wants to achieve on update.
Definition: Agent.php:65
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30
hasConfig()
Does this agent require a configuration?
Definition: Agent.php:50
getArrayToConfigTransformation()
Agents must be able to tell how to create a configuration from a nested array.
Definition: Agent.php:55
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getInstallObjective(Config $config=null)
Get the goals the agent wants to achieve on setup.
Definition: Agent.php:60
getBuildArtifactObjective()
Get the goal the agent wants to achieve to build artifacts.
Definition: Agent.php:34
getMigrations()
Get a named map of migrations available for this Agent.
Definition: Agent.php:75
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...
A transformation is a function from one datatype to another.
getStatusObjective(Metrics\Storage $storage)
Definition: Agent.php:70
getNamedObjectives(?Config $config=null)
Gets all named objectives The keys of the returned array are the commands.
Definition: Agent.php:45
A configuration for the setup.
Definition: Config.php:26