function SecurityAdvisoriesFetcher::__construct
Same name in other branches
- 9 core/modules/system/src/SecurityAdvisories/SecurityAdvisoriesFetcher.php \Drupal\system\SecurityAdvisories\SecurityAdvisoriesFetcher::__construct()
- 10 core/modules/system/src/SecurityAdvisories/SecurityAdvisoriesFetcher.php \Drupal\system\SecurityAdvisories\SecurityAdvisoriesFetcher::__construct()
Constructs a new SecurityAdvisoriesFetcher object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Drupal\Core\KeyValueStore\KeyValueExpirableFactoryInterface $key_value_factory: The expirable key/value factory.
\GuzzleHttp\ClientInterface $client: The HTTP client.
\Drupal\Core\Extension\ModuleExtensionList $module_list: The module extension list.
\Drupal\Core\Extension\ThemeExtensionList $theme_list: The theme extension list.
\Drupal\Core\Extension\ProfileExtensionList $profile_list: The profile extension list.
\Psr\Log\LoggerInterface $logger: The logger.
\Drupal\Core\Site\Settings $settings: The settings instance.
File
-
core/
modules/ system/ src/ SecurityAdvisories/ SecurityAdvisoriesFetcher.php, line 92
Class
- SecurityAdvisoriesFetcher
- Defines a service to get security advisories.
Namespace
Drupal\system\SecurityAdvisoriesCode
public function __construct(ConfigFactoryInterface $config_factory, KeyValueExpirableFactoryInterface $key_value_factory, ClientInterface $client, ModuleExtensionList $module_list, ThemeExtensionList $theme_list, ProfileExtensionList $profile_list, LoggerInterface $logger, Settings $settings) {
$this->config = $config_factory->get('system.advisories');
$this->keyValueExpirable = $key_value_factory->get('system');
$this->httpClient = $client;
$this->extensionLists['module'] = $module_list;
$this->extensionLists['theme'] = $theme_list;
$this->extensionLists['profile'] = $profile_list;
$this->logger = $logger;
$this->withHttpFallback = $settings->get('update_fetch_with_http_fallback', FALSE);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.