22 return hash(
"sha256", self::class);
27 return "Store configuration of Services/Http";
39 new \ilSettingsFactoryExistsObjective()
45 $ini = $environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI);
47 $ini->setVariable(
"server",
"http_path", $this->config->getHttpPath());
48 $ini->setVariable(
"https",
"auto_https_detect_enabled", $this->config->isAutodetectionEnabled() ?
"1" :
"0");
49 $ini->setVariable(
"https",
"auto_https_detect_header_name", $this->config->getHeaderName());
50 $ini->setVariable(
"https",
"auto_https_detect_header_value", $this->config->getHeaderValue());
54 throw new Setup\UnachievableException(
"Could not write ilias.ini.php");
57 $factory = $environment->getResource(Setup\Environment::RESOURCE_SETTINGS_FACTORY);
58 $settings =
$factory->settingsFor(
"common");
59 $settings->set(
"proxy_status", (
int) $this->config->isProxyEnabled());
60 $settings->set(
"proxy_host", $this->config->getProxyHost());
61 $settings->set(
"proxy_port", $this->config->getProxyPort());
71 $ini = $environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI);
72 $factory = $environment->getResource(Setup\Environment::RESOURCE_SETTINGS_FACTORY);
73 $settings =
$factory->settingsFor(
"common");
75 $detect_enabled = $this->config->isAutodetectionEnabled() ?
"1" :
"0";
78 $ini->readVariable(
"server",
"http_path") !== $this->config->getHttpPath() ||
79 $ini->readVariable(
"https",
"auto_https_detect_enabled") !== $detect_enabled ||
80 $ini->readVariable(
"https",
"auto_https_detect_header_name") !== $this->config->getHeaderName() ||
81 $ini->readVariable(
"https",
"auto_https_detect_header_value") !== $this->config->getHeaderValue() ||
82 $settings->get(
"proxy_status") !== (int) $this->config->isProxyEnabled() ||
83 $settings->get(
"proxy_host") !== $this->config->getProxyHost() ||
84 $settings->get(
"proxy_port") !== $this->config->getProxyPort()
getPreconditions(Setup\Environment $environment)
isApplicable(Setup\Environment $environment)
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.
__construct(\ilHttpSetupConfig $config)