ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
class.ilComponentsSetupAgent.php
Go to the documentation of this file.
1 <?php
2 
20 declare(strict_types=1);
21 
22 use ILIAS\Setup;
26 
28 {
30 
31  public function __construct(
32  protected PublicAssetManager $public_asset_manager,
33  protected array $public_assets
34  ) {
35  }
36 
40  public function hasConfig(): bool
41  {
42  return false;
43  }
44 
49  {
50  throw new LogicException(self::class . " has no Config.");
51  }
52 
56  public function getInstallObjective(Setup\Config $config = null): Setup\Objective
57  {
59  }
60 
64  public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
65  {
66  return new Setup\ObjectiveCollection(
67  "Updates of Services/Components",
68  false,
71  ),
73  );
74  }
75 
79  public function getBuildObjective(): Setup\Objective
80  {
81  return new Setup\ObjectiveCollection(
82  "Build Objectives of \\ILIAS\\Component",
83  false,
85  "Artifacts for \\ILIAS\\Component",
86  false,
89  ),
91  $this->public_asset_manager,
92  $this->public_assets
93  )
94  );
95  }
96 
100  public function getStatusObjective(Setup\Metrics\Storage $storage): Setup\Objective
101  {
103  }
104 
108  public function getMigrations(): array
109  {
110  return [];
111  }
112 }
A objective collection is a objective that is achieved once all subobjectives are achieved...
__construct(protected PublicAssetManager $public_asset_manager, protected array $public_assets)
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30
getArrayToConfigTransformation()
Agents must be able to tell how to create a configuration from a nested array.if Agent has no Config ...
getStatusObjective(Setup\Metrics\Storage $storage)
getBuildObjective()
Get the goal the agent wants to achieve to build artifacts.if Config does not match the Agent...
A agent is some component that performs part of the setup process.
Definition: Agent.php:29
getInstallObjective(Setup\Config $config=null)
getUpdateObjective(Setup\Config $config=null)
hasConfig()
Does this agent require a configuration?
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Will take care of the public assets, just like a good manager does.
A transformation is a function from one datatype to another.
A configuration for the setup.
Definition: Config.php:26