You are here

public function AdvisoriesConfigSubscriber::__construct in Drupal 10

Same name and namespace in other branches
  1. 9 core/modules/system/src/EventSubscriber/AdvisoriesConfigSubscriber.php \Drupal\system\EventSubscriber\AdvisoriesConfigSubscriber::__construct()

Constructs a new ConfigSubscriber object.

Parameters

\Drupal\system\SecurityAdvisories\SecurityAdvisoriesFetcher $security_advisories_fetcher: The security advisory fetcher service.

File

core/modules/system/src/EventSubscriber/AdvisoriesConfigSubscriber.php, line 28

Class

AdvisoriesConfigSubscriber
Defines a config subscriber for changes to 'system.advisories'.

Namespace

Drupal\system\EventSubscriber

Code

public function __construct(SecurityAdvisoriesFetcher $security_advisories_fetcher) {
  $this->securityAdvisoriesFetcher = $security_advisories_fetcher;
}