ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilAuthenticationSetupAgent Class Reference
+ Inheritance diagram for ilAuthenticationSetupAgent:
+ Collaboration diagram for ilAuthenticationSetupAgent:

Public Member Functions

 __construct (protected Refinery\Factory $refinery)
 
 hasConfig ()
 
 getArrayToConfigTransformation ()
 
 getInstallObjective (?Setup\Config $config=null)
 
 getUpdateObjective (?Setup\Config $config=null)
 
 getBuildObjective ()
 
 getStatusObjective (Setup\Metrics\Storage $storage)
 
 getMigrations ()
 

Protected Attributes

const int 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 ( )

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

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 }

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

+ Here is the call graph for this function:

◆ getBuildObjective()

ilAuthenticationSetupAgent::getBuildObjective ( )

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

80 : Setup\Objective
81 {
82 return new Setup\Objective\NullObjective();
83 }

◆ 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 ( )

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

97 : array
98 {
99 return [];
100 }

◆ getStatusObjective()

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

◆ getUpdateObjective()

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

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

58 : Setup\Objective
59 {
60 if ($config !== null) {
61 return new Setup\ObjectiveCollection(
62 'Authentication',
63 true,
67 ),
68 );
69 }
70
71 return new Setup\ObjectiveCollection(
72 'Authentication',
73 true,
76 ),
77 );
78 }
This class attempt to achieve a set of database update steps.

◆ hasConfig()

ilAuthenticationSetupAgent::hasConfig ( )

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

35 : bool
36 {
37 return true;
38 }

Field Documentation

◆ DEFAULT_SESSION_EXPIRE_IN_SECONDS

const int 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: