ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilComponentsSetupAgent.php
Go to the documentation of this file.
1<?php declare(strict_types=1);
2
3use \ILIAS\Setup;
4use \ILIAS\UI;
5use \ILIAS\Refinery\Transformation;
6
8{
9 use Setup\Agent\HasNoNamedObjective;
10
14 public function hasConfig() : bool
15 {
16 return false;
17 }
18
23 {
24 throw new \LogicException(self::class . " has no Config.");
25 }
26
30 public function getInstallObjective(Setup\Config $config = null) : Setup\Objective
31 {
32 return new \ilComponentDefinitionsStoredObjective();
33 }
34
38 public function getUpdateObjective(Setup\Config $config = null) : Setup\Objective
39 {
40 return new \ilComponentDefinitionsStoredObjective(false);
41 }
42
46 public function getBuildArtifactObjective() : Setup\Objective
47 {
49 }
50
54 public function getStatusObjective(Setup\Metrics\Storage $storage) : Setup\Objective
55 {
57 }
58
62 public function getMigrations() : array
63 {
64 return [];
65 }
66}
An exception for terminatinating execution or to throw for unit testing.
A non-objective, nothing to do to achieve it...
getUpdateObjective(Setup\Config $config=null)
getInstallObjective(Setup\Config $config=null)
getStatusObjective(Setup\Metrics\Storage $storage)
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:14
A configuration for the setup.
Definition: Config.php:11
An objective is a desired state of the system that is supposed to be created by the setup.
Definition: Objective.php:15
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:68