ILIAS  release_8 Revision v8.23
LDAPSetupAgent.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\LDAP\Setup;
22 
23 use ILIAS\Setup;
24 use ILIAS\Refinery;
25 use LogicException;
28 
29 class LDAPSetupAgent implements Setup\Agent
30 {
32 
33  public function hasConfig(): bool
34  {
35  return false;
36  }
37 
39  {
40  throw new LogicException('Agent has no config.');
41  }
42 
43  public function getInstallObjective(Setup\Config $config = null): Setup\Objective
44  {
45  return new Setup\Objective\NullObjective();
46  }
47 
48  public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
49  {
52  );
53  }
54 
55  public function getBuildArtifactObjective(): Setup\Objective
56  {
57  return new Setup\Objective\NullObjective();
58  }
59 
60  public function getStatusObjective(Setup\Metrics\Storage $storage): Setup\Objective
61  {
63  }
64 
65  public function getMigrations(): array
66  {
67  return [];
68  }
69 }
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: ByTrying.php:21
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:85
A agent is some component that performs part of the setup process.
Definition: Agent.php:29
getStatusObjective(Setup\Metrics\Storage $storage)
getArrayToConfigTransformation()
Agents must be able to tell how to create a configuration from a nested array.
getBuildArtifactObjective()
Get the goal the agent wants to achieve to build artifacts.
getMigrations()
Get a named map of migrations available for this Agent.
getUpdateObjective(Setup\Config $config=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getInstallObjective(Setup\Config $config=null)
A transformation is a function from one datatype to another.
hasConfig()
Does this agent require a configuration?
A configuration for the setup.
Definition: Config.php:26