ILIAS  trunk Revision v12.0_alpha-1221-g4e438232683
ContainerSetupAgent.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25use ILIAS\Setup\Agent\HasNoNamedObjective;
30
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
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}
getUpdateObjective(?Config $config=null)
@inheritdocs
getInstallObjective(?Config $config=null)
@inheritdocs
An agent that just doesn't do a thing.
Definition: NullAgent.php:35
A objective collection is a objective that is achieved once all subobjectives are achieved.
A non-objective, nothing to do to achieve it...
A transformation is a function from one datatype to another.
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
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...