ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilComponentsSetupAgent.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21use ILIAS\Setup;
25
27{
28 use Setup\Agent\HasNoNamedObjective;
29
30 public function __construct(
31 protected PublicAssetManager $public_asset_manager,
32 protected array $public_assets
33 ) {
34 }
35
39 public function hasConfig(): bool
40 {
41 return false;
42 }
43
48 {
49 throw new LogicException(self::class . " has no Config.");
50 }
51
55 public function getInstallObjective(?Setup\Config $config = null): Setup\Objective
56 {
58 }
59
63 public function getUpdateObjective(?Setup\Config $config = null): Setup\Objective
64 {
66 "Updates of Services/Components",
67 false,
70 ),
72 );
73 }
74
79 {
81 "Build Objectives of \\ILIAS\\Component",
82 false,
84 "Artifacts for \\ILIAS\\Component",
85 false,
88 ),
90 $this->public_asset_manager,
91 $this->public_assets
92 )
93 );
94 }
95
99 public function getStatusObjective(Setup\Metrics\Storage $storage): Setup\Objective
100 {
102 }
103
107 public function getMigrations(): array
108 {
109 return [];
110 }
111}
Will take care of the public assets, just like a good manager does.
A objective collection is a objective that is achieved once all subobjectives are achieved.
getStatusObjective(Setup\Metrics\Storage $storage)
__construct(protected PublicAssetManager $public_asset_manager, protected array $public_assets)
getInstallObjective(?Setup\Config $config=null)
getUpdateObjective(?Setup\Config $config=null)
This class attempt to achieve a set of database update steps.
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...