ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
ilAuthenticationSetupAgent Class Reference
+ Inheritance diagram for ilAuthenticationSetupAgent:
+ Collaboration diagram for ilAuthenticationSetupAgent:

Public Member Functions

 __construct (protected Refinery\Factory $refinery)
 
 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)
 
 getUpdateObjective (Setup\Config $config=null)
 
 getBuildObjective ()
 Get the goal the agent wants to achieve to build artifacts. More...
 
 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
 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...
 
 getStatusObjective (Metrics\Storage $storage)
 Get the objective to be achieved when status is requested. More...
 
 getNamedObjectives (?Config $config=null)
 Gets all named objectives The keys of the returned array are the commands. More...
 

Protected Attributes

const DEFAULT_SESSION_EXPIRE_IN_SECONDS = 1_800
 

Detailed Description

Definition at line 25 of file class.ilAuthenticationSetupAgent.php.

Constructor & Destructor Documentation

◆ __construct()

ilAuthenticationSetupAgent::__construct ( protected Refinery\Factory  $refinery)

Definition at line 31 of file class.ilAuthenticationSetupAgent.php.

32  {
33  }

Member Function Documentation

◆ getArrayToConfigTransformation()

ilAuthenticationSetupAgent::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 40 of file class.ilAuthenticationSetupAgent.php.

References $data, and ILIAS\Repository\refinery().

40  : Refinery\Transformation
41  {
42  return $this->refinery->custom()->transformation(function ($data): \ilAuthenticationSetupConfig {
43  return new ilAuthenticationSetupConfig($data["session_max_idle"] ?? self::DEFAULT_SESSION_EXPIRE_IN_SECONDS);
44  });
45  }
+ Here is the call graph for this function:

◆ getBuildObjective()

ilAuthenticationSetupAgent::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 92 of file class.ilAuthenticationSetupAgent.php.

92  : Setup\Objective
93  {
94  return new Setup\Objective\NullObjective();
95  }

◆ getInstallObjective()

ilAuthenticationSetupAgent::getInstallObjective ( Setup\Config  $config = null)

Definition at line 47 of file class.ilAuthenticationSetupAgent.php.

47  : Setup\Objective
48  {
49  if ($config !== null) {
50  return new ilSessionMaxIdleIsSetObjective($config);
51  }
52 
54  new ilAuthenticationSetupConfig(self::DEFAULT_SESSION_EXPIRE_IN_SECONDS)
55  );
56  }

◆ getMigrations()

ilAuthenticationSetupAgent::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 113 of file class.ilAuthenticationSetupAgent.php.

113  : array
114  {
115  return [];
116  }

◆ getStatusObjective()

ilAuthenticationSetupAgent::getStatusObjective ( Setup\Metrics\Storage  $storage)

◆ getUpdateObjective()

ilAuthenticationSetupAgent::getUpdateObjective ( Setup\Config  $config = null)

Definition at line 58 of file class.ilAuthenticationSetupAgent.php.

◆ hasConfig()

ilAuthenticationSetupAgent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

Definition at line 35 of file class.ilAuthenticationSetupAgent.php.

35  : bool
36  {
37  return true;
38  }

Field Documentation

◆ DEFAULT_SESSION_EXPIRE_IN_SECONDS

const ilAuthenticationSetupAgent::DEFAULT_SESSION_EXPIRE_IN_SECONDS = 1_800
protected

Definition at line 29 of file class.ilAuthenticationSetupAgent.php.


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