ILIAS
trunk Revision v12.0_alpha-1221-g4e438232683
◀ ilDoc Overview
ContainerSetupAgent.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Container\Setup
;
22
23
use
ILIAS\Setup\Agent\NullAgent
;
24
use
ILIAS\Setup\Objective\NullObjective
;
25
use ILIAS\Setup\Agent\HasNoNamedObjective;
26
use
ILIAS\Refinery\Transformation
;
27
use
ILIAS\Setup\ObjectiveCollection
;
28
use
ILIAS\Setup\Config
;
29
use
ILIAS\Setup\Objective
;
30
31
class
ContainerSetupAgent
extends
NullAgent
32
{
33
use HasNoNamedObjective;
34
35
public
function
getUpdateObjective
(?
Config
$config =
null
):
Objective
36
{
37
return
new
ObjectiveCollection
(
38
'Database is updated for ILIAS\Container'
,
39
false
,
40
new
WebFeedCreationDeletedObjective
(
'cat'
,
'create_feed'
),
41
new
WebFeedCreationDeletedObjective
(
'grp'
,
'create_feed'
),
42
new
WebFeedCreationDeletedObjective
(
'crs'
,
'create_feed'
),
43
new
WebFeedCreationDeletedObjective
(
'fold'
,
'create_feed'
)
44
);
45
}
46
47
48
public
function
hasConfig
(): bool
49
{
50
return
false
;
51
}
52
53
public
function
getArrayToConfigTransformation
():
Transformation
54
{
55
throw
new \LogicException(
"Agent has no config."
);
56
}
57
58
public
function
getInstallObjective
(?
Config
$config =
null
):
Objective
59
{
60
return
new
NullObjective
();
61
}
62
63
public
function
getBuildObjective
():
Objective
64
{
65
return
new
NullObjective
();
66
}
67
68
public
function
getMigrations
(): array
69
{
70
return
[
71
];
72
}
73
}
ILIAS\Container\Setup\ContainerSetupAgent
Definition:
ContainerSetupAgent.php:32
ILIAS\Container\Setup\ContainerSetupAgent\getUpdateObjective
getUpdateObjective(?Config $config=null)
@inheritdocs
Definition:
ContainerSetupAgent.php:35
ILIAS\Container\Setup\ContainerSetupAgent\getBuildObjective
getBuildObjective()
@inheritdocs
Definition:
ContainerSetupAgent.php:63
ILIAS\Container\Setup\ContainerSetupAgent\getArrayToConfigTransformation
getArrayToConfigTransformation()
@inheritdocs
Definition:
ContainerSetupAgent.php:53
ILIAS\Container\Setup\ContainerSetupAgent\getInstallObjective
getInstallObjective(?Config $config=null)
@inheritdocs
Definition:
ContainerSetupAgent.php:58
ILIAS\Container\Setup\ContainerSetupAgent\getMigrations
getMigrations()
@inheritDoc
Definition:
ContainerSetupAgent.php:68
ILIAS\Container\Setup\ContainerSetupAgent\hasConfig
hasConfig()
@inheritdocs
Definition:
ContainerSetupAgent.php:48
ILIAS\Container\Setup\WebFeedCreationDeletedObjective
Definition:
WebFeedCreationDeletedObjective.php:26
ILIAS\Setup\Agent\NullAgent
An agent that just doesn't do a thing.
Definition:
NullAgent.php:35
ILIAS\Setup\ObjectiveCollection
A objective collection is a objective that is achieved once all subobjectives are achieved.
Definition:
ObjectiveCollection.php:27
ILIAS\Setup\Objective\NullObjective
A non-objective, nothing to do to achieve it...
Definition:
NullObjective.php:29
ILIAS\Refinery\Transformation
A transformation is a function from one datatype to another.
Definition:
Transformation.php:35
ILIAS\Setup\Config
A configuration for the setup.
Definition:
Config.php:27
ILIAS\Setup\Objective
An objective is a desired state of the system that is supposed to be created by the setup.
Definition:
Objective.php:31
ILIAS\Container\Setup
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
ContainerSetupAgent.php:21
ILIAS\Setup\Objective
Definition:
AdminConfirmedObjective.php:21
components
ILIAS
Container
Setup
ContainerSetupAgent.php
Generated on Sun Apr 5 2026 23:02:44 for ILIAS by
1.9.4 (using
Doxyfile
)