ILIAS  trunk Revision v12.0_alpha-1227-g7ff6d300864
class.ilAuthenticationSetupAgent.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21use ILIAS\Authentication\Setup\AbandonCASAuthModeUpdateObjective;
22use ILIAS\Setup;
24
26{
27 use Setup\Agent\HasNoNamedObjective;
28
29 protected const int DEFAULT_SESSION_EXPIRE_IN_SECONDS = 1_800;
30
31 public function __construct(protected Refinery\Factory $refinery)
32 {
33 }
34
35 public function hasConfig(): bool
36 {
37 return true;
38 }
39
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 }
46
47 public function getInstallObjective(?Setup\Config $config = null): 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 }
57
58 public function getUpdateObjective(?Setup\Config $config = null): Setup\Objective
59 {
60 if ($config !== null) {
62 'Authentication',
63 true,
65 );
66 }
67
69 }
70
72 {
74 }
75
76 public function getStatusObjective(Setup\Metrics\Storage $storage): Setup\Objective
77 {
79 }
80
81 public function getMigrations(): array
82 {
83 return [];
84 }
85}
Builds a Color from either hex- or rgb values.
Definition: Factory.php:31
A objective collection is a objective that is achieved once all subobjectives are achieved.
A non-objective, nothing to do to achieve it...
__construct(protected Refinery\Factory $refinery)
getInstallObjective(?Setup\Config $config=null)
getStatusObjective(Setup\Metrics\Storage $storage)
getUpdateObjective(?Setup\Config $config=null)
A transformation is a function from one datatype to another.
A agent is some component that performs part of the setup process.
Definition: Agent.php:30
A configuration for the setup.
Definition: Config.php:27
An objective is a desired state of the system that is supposed to be created by the setup.
Definition: Objective.php:31
Storage is simple key/value store without further schema definition.
Definition: Storage.php:30
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...