ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
ILIAS\ApacheAuth\Setup\ApacheAuthAgent Class Reference
+ Inheritance diagram for ILIAS\ApacheAuth\Setup\ApacheAuthAgent:
+ Collaboration diagram for ILIAS\ApacheAuth\Setup\ApacheAuthAgent:

Public Member Functions

 __construct (private readonly array $username_provider_contributions)
 
 hasConfig ()
 Does this agent require a configuration? More...
 
 getArrayToConfigTransformation ()
 Agents must be able to tell how to create a configuration from a nested array. More...
 
 getInstallObjective (?Setup\Config $config=null)
 
 getBuildObjective ()
 Get the goal the agent wants to achieve to build artifacts. More...
 
 getUpdateObjective (?Setup\Config $config=null)
 
 getStatusObjective (Setup\Metrics\Storage $storage)
 
 getMigrations ()
 Get a named map of migrations available for this Agent. More...
 
- Public Member Functions inherited from ILIAS\Setup\Agent
 hasConfig ()
 Does this agent require a configuration? More...
 
 getArrayToConfigTransformation ()
 Agents must be able to tell how to create a configuration from a nested array. More...
 
 getInstallObjective (?Config $config=null)
 Get the goals the agent wants to achieve on setup. More...
 
 getUpdateObjective (?Config $config=null)
 Get the goal the agent wants to achieve on update. More...
 
 getBuildObjective ()
 Get the goal the agent wants to achieve to build artifacts. More...
 
 getStatusObjective (Metrics\Storage $storage)
 Get the objective to be achieved when status is requested. More...
 
 getMigrations ()
 Get a named map of migrations available for this Agent. More...
 
 getNamedObjectives (?Config $config=null)
 Gets all named objectives The keys of the returned array are the commands. More...
 

Detailed Description

Definition at line 26 of file ApacheAuthAgent.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\ApacheAuth\Setup\ApacheAuthAgent::__construct ( private readonly array  $username_provider_contributions)
Parameters
list<UsernameProvider

UsernameProvider> $username_provider_contributions

Definition at line 33 of file ApacheAuthAgent.php.

35 {
36 }

Member Function Documentation

◆ getArrayToConfigTransformation()

ILIAS\ApacheAuth\Setup\ApacheAuthAgent::getArrayToConfigTransformation ( )

Agents must be able to tell how to create a configuration from a nested array.

Exceptions
LogicExceptionif Agent has no Config

Implements ILIAS\Setup\Agent.

Definition at line 43 of file ApacheAuthAgent.php.

44 {
45 throw new \LogicException(self::class . ' has no Config.');
46 }
A transformation is a function from one datatype to another.

◆ getBuildObjective()

ILIAS\ApacheAuth\Setup\ApacheAuthAgent::getBuildObjective ( )

Get the goal the agent wants to achieve to build artifacts.

Exceptions
InvalidArgumentExceptionif Config does not match the Agent.

Implements ILIAS\Setup\Agent.

Definition at line 57 of file ApacheAuthAgent.php.

57 : Setup\Objective
58 {
59 return new Setup\ObjectiveCollection(
60 'Building ApacheAuthentication',
61 false,
62 new UsernameProvider\CollectUsernameProvidersObjective($this->username_provider_contributions)
63 );
64 }

◆ getInstallObjective()

ILIAS\ApacheAuth\Setup\ApacheAuthAgent::getInstallObjective ( ?Setup\Config  $config = null)

Definition at line 48 of file ApacheAuthAgent.php.

48 : Setup\Objective
49 {
50 return new Setup\ObjectiveCollection(
51 'Installing ApacheAuthentication',
52 false,
53 new UsernameProvider\CollectUsernameProvidersObjective($this->username_provider_contributions)
54 );
55 }

◆ getMigrations()

ILIAS\ApacheAuth\Setup\ApacheAuthAgent::getMigrations ( )

Get a named map of migrations available for this Agent.

Should also return Migrations that have run completely.

Returns
array<string,Migration>|Migration[]

Implements ILIAS\Setup\Agent.

Definition at line 80 of file ApacheAuthAgent.php.

80 : array
81 {
82 return [];
83 }

◆ getStatusObjective()

ILIAS\ApacheAuth\Setup\ApacheAuthAgent::getStatusObjective ( Setup\Metrics\Storage  $storage)

Definition at line 75 of file ApacheAuthAgent.php.

75 : Setup\Objective
76 {
77 return new Setup\Objective\NullObjective();
78 }

◆ getUpdateObjective()

ILIAS\ApacheAuth\Setup\ApacheAuthAgent::getUpdateObjective ( ?Setup\Config  $config = null)

Definition at line 66 of file ApacheAuthAgent.php.

66 : Setup\Objective
67 {
68 return new Setup\ObjectiveCollection(
69 'Updating ApacheAuthentication',
70 false,
71 new UsernameProvider\CollectUsernameProvidersObjective($this->username_provider_contributions)
72 );
73 }

◆ hasConfig()

ILIAS\ApacheAuth\Setup\ApacheAuthAgent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

Definition at line 38 of file ApacheAuthAgent.php.

38 : bool
39 {
40 return false;
41 }

The documentation for this class was generated from the following file: