ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
ApacheAuthAgent.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use ILIAS\Setup;
25
27{
28 use Setup\Agent\HasNoNamedObjective;
29
33 public function __construct(
34 private readonly array $username_provider_contributions
35 ) {
36 }
37
38 public function hasConfig(): bool
39 {
40 return false;
41 }
42
44 {
45 throw new \LogicException(self::class . ' has no Config.');
46 }
47
48 public function getInstallObjective(?Setup\Config $config = null): Setup\Objective
49 {
51 'Installing ApacheAuthentication',
52 false,
53 new UsernameProvider\CollectUsernameProvidersObjective($this->username_provider_contributions)
54 );
55 }
56
58 {
60 'Building ApacheAuthentication',
61 false,
62 new UsernameProvider\CollectUsernameProvidersObjective($this->username_provider_contributions)
63 );
64 }
65
66 public function getUpdateObjective(?Setup\Config $config = null): Setup\Objective
67 {
69 'Updating ApacheAuthentication',
70 false,
71 new UsernameProvider\CollectUsernameProvidersObjective($this->username_provider_contributions)
72 );
73 }
74
75 public function getStatusObjective(Setup\Metrics\Storage $storage): Setup\Objective
76 {
78 }
79
80 public function getMigrations(): array
81 {
82 return [];
83 }
84}
getBuildObjective()
Get the goal the agent wants to achieve to build artifacts.
getStatusObjective(Setup\Metrics\Storage $storage)
getMigrations()
Get a named map of migrations available for this Agent.
hasConfig()
Does this agent require a configuration?
getArrayToConfigTransformation()
Agents must be able to tell how to create a configuration from a nested array.
getUpdateObjective(?Setup\Config $config=null)
__construct(private readonly array $username_provider_contributions)
getInstallObjective(?Setup\Config $config=null)
A objective collection is a objective that is achieved once all subobjectives are achieved.
A non-objective, nothing to do to achieve it...
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
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.