19 declare(strict_types=1);
    35         return hash(
"sha256", self::class);
    40         return "Store configuration of Services/Http";
    55             new \ilSettingsFactoryExistsObjective()
    61         $ini = $environment->getResource(
Setup\Environment::RESOURCE_ILIAS_INI);
    66             $this->config->getHttpPath()
    71             $this->config->isForced() ? 
"1" : 
"0"    76             $this->config->isAutodetectionEnabled() ? 
"1" : 
"0"    81             (
string) $this->config->getHeaderName()
    86             (
string) $this->config->getHeaderValue()
    91             throw new Setup\UnachievableException(
"Could not write ilias.ini.php");
    94         $factory = $environment->getResource(
Setup\Environment::RESOURCE_SETTINGS_FACTORY);
    95         $settings = $factory->settingsFor(
"common");
    96         $settings->set(
"proxy_status", (
string) $this->config->isProxyEnabled());
    97         $settings->set(
"proxy_host", (
string) $this->config->getProxyHost());
    98         $settings->set(
"proxy_port", (
string) $this->config->getProxyPort());
   100         if (is_array($this->config->getAllowedHosts()) && $this->config->getAllowedHosts() !== []) {
   101             $settings->set(
'allowed_hosts', implode(
',', $this->config->getAllowedHosts()));
   103             $settings->delete(
'allowed_hosts');
   114         $ini = $environment->getResource(
Setup\Environment::RESOURCE_ILIAS_INI);
   115         $factory = $environment->getResource(
Setup\Environment::RESOURCE_SETTINGS_FACTORY);
   116         $settings = $factory->settingsFor(
"common");
   118         $detect_enabled = $this->config->isAutodetectionEnabled() ? 
"1" : 
"0";
   119         $forced = $this->config->isForced() ? 
"1" : 
"0";
   127             $settings->get(
"proxy_status") !== (
int) $this->config->isProxyEnabled() ||
   128             $settings->get(
"proxy_host") !== $this->config->getProxyHost() ||
   129             $settings->get(
"proxy_port") !== $this->config->getProxyPort() ||
   130             $settings->get(
'allowed_hosts', 
'') !== implode(
',', $this->config->getAllowedHosts() ?? [])
 
const SETTINGS_GROUP_HTTPS
 
const SETTING_AUTO_HTTPS_DETECT_HEADER_NAME
 
ilHttpSetupConfig $config
 
getPreconditions(Setup\Environment $environment)
 
isApplicable(Setup\Environment $environment)
 
const SETTING_AUTO_HTTPS_DETECT_HEADER_VALUE
 
achieve(Setup\Environment $environment)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
An environment holds resources to be used in the setup process. 
 
const SETTINGS_GROUP_SERVER
 
__construct(\ilHttpSetupConfig $config)
 
const SETTING_AUTO_HTTPS_DETECT_ENABLED