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

Public Member Functions

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

Protected Attributes

ILIAS Refinery Factory $refinery
 

Detailed Description

Definition at line 24 of file class.ilHttpSetupAgent.php.

Constructor & Destructor Documentation

◆ __construct()

ilHttpSetupAgent::__construct ( Refinery\Factory  $refinery)

Definition at line 30 of file class.ilHttpSetupAgent.php.

32 {
33 $this->refinery = $refinery;
34 }
ILIAS Refinery Factory $refinery

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

+ Here is the call graph for this function:

Member Function Documentation

◆ getArrayToConfigTransformation()

ilHttpSetupAgent::getArrayToConfigTransformation ( )

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

47 : Refinery\Transformation
48 {
49 return $this->refinery->custom()->transformation(function ($data): \ilHttpSetupConfig {
50 return new \ilHttpSetupConfig(
51 $data["path"],
52 isset($data["https_autodetection"]) && $data["https_autodetection"],
53 isset($data["forced"]) && $data["forced"],
54 (isset($data["https_autodetection"]) && $data["https_autodetection"])
55 ? $data["https_autodetection"]["header_name"]
56 : null,
57 (isset($data["https_autodetection"]) && $data["https_autodetection"])
58 ? $data["https_autodetection"]["header_value"]
59 : null,
60 isset($data["proxy"]) && $data["proxy"],
61 (isset($data["proxy"]) && $data["proxy"])
62 ? $data["proxy"]["host"]
63 : null,
64 (isset($data["proxy"]) && $data["proxy"])
65 ? $data["proxy"]["port"]
66 : null,
67 $data['allowed_hosts'] ?? null
68 );
69 });
70 }

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

+ Here is the call graph for this function:

◆ getBuildObjective()

ilHttpSetupAgent::getBuildObjective ( )

Definition at line 103 of file class.ilHttpSetupAgent.php.

103 : Setup\Objective
104 {
105 return new Setup\Objective\NullObjective();
106 }

◆ getInstallObjective()

ilHttpSetupAgent::getInstallObjective ( ?Setup\Config  $config = null)

Definition at line 75 of file class.ilHttpSetupAgent.php.

75 : Setup\Objective
76 {
77 $http_config_stored = new ilHttpConfigStoredObjective($config);
78
79 if (!$config->isProxyEnabled()) {
80 return $http_config_stored;
81 }
82
83 return new Setup\Objective\ObjectiveWithPreconditions(
84 $http_config_stored,
85 new ProxyConnectableCondition($config)
86 );
87 }

◆ getMigrations()

ilHttpSetupAgent::getMigrations ( )

@inheritDoc

Definition at line 119 of file class.ilHttpSetupAgent.php.

119 : array
120 {
121 return [];
122 }

◆ getStatusObjective()

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

Definition at line 111 of file class.ilHttpSetupAgent.php.

111 : Setup\Objective
112 {
113 return new ilHttpMetricsCollectedObjective($storage);
114 }

◆ getUpdateObjective()

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

Definition at line 92 of file class.ilHttpSetupAgent.php.

92 : Setup\Objective
93 {
94 if ($config !== null) {
95 return new ilHttpConfigStoredObjective($config);
96 }
97 return new Setup\Objective\NullObjective();
98 }

◆ hasConfig()

ilHttpSetupAgent::hasConfig ( )

Definition at line 39 of file class.ilHttpSetupAgent.php.

39 : bool
40 {
41 return true;
42 }

Field Documentation

◆ $refinery

ILIAS Refinery Factory ilHttpSetupAgent::$refinery
protected

Definition at line 28 of file class.ilHttpSetupAgent.php.

Referenced by __construct().


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