ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.ilADNAgent.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
24 use ILIAS\Refinery;
25 use ILIAS\Setup;
26 
31 class ilADNAgent implements Setup\Agent
32 {
33  protected Factory $refinery;
34 
35  public function __construct(Factory $refinery)
36  {
37  $this->refinery = $refinery;
38  }
39 
40 
41  public function hasConfig(): bool
42  {
43  return false;
44  }
45 
46 
48  {
49  throw new \LogicException("Agent has no config.");
50  }
51 
52 
53  public function getInstallObjective(Config $config = null): Setup\Objective
54  {
55  return new Setup\Objective\NullObjective();
56  }
57 
58 
59  public function getUpdateObjective(Config $config = null): Setup\Objective
60  {
61  return new Setup\ObjectiveCollection(
62  "",
63  true,
66  )
67  );
68  }
69 
70 
71  public function getBuildArtifactObjective(): Setup\Objective
72  {
73  return new Setup\Objective\NullObjective();
74  }
75 
76 
77  public function getStatusObjective(Setup\Metrics\Storage $storage): Setup\Objective
78  {
80  }
81 
82 
83  public function getMigrations(): array
84  {
85  return [];
86  }
87 
88  public function getNamedObjectives(?Config $config = null): array
89  {
90  return [];
91  }
92 }
getArrayToConfigTransformation()
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30
getInstallObjective(Config $config=null)
getNamedObjectives(?Config $config=null)
Factory $refinery
getUpdateObjective(Config $config=null)
__construct(Factory $refinery)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
A transformation is a function from one datatype to another.
getStatusObjective(Setup\Metrics\Storage $storage)
A configuration for the setup.
Definition: Config.php:26