class AdvisoriesConfigSubscriber implements EventSubscriberInterface (View source)

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

Properties

protected SecurityAdvisoriesFetcher $securityAdvisoriesFetcher

The security advisory fetcher service.

Methods

__construct(SecurityAdvisoriesFetcher $security_advisories_fetcher)

Constructs a new ConfigSubscriber object.

void
onConfigSave(ConfigCrudEvent $event)

Deletes the stored response from the security advisories feed, if needed.

static array
getSubscribedEvents()

{@inheritdoc}

Details

__construct(SecurityAdvisoriesFetcher $security_advisories_fetcher)

Constructs a new ConfigSubscriber object.

Parameters

SecurityAdvisoriesFetcher $security_advisories_fetcher

The security advisory fetcher service.

void onConfigSave(ConfigCrudEvent $event)

Deletes the stored response from the security advisories feed, if needed.

The stored response will only be deleted if the 'interval_hours' config setting is reduced from the previous value.

Parameters

ConfigCrudEvent $event

The configuration event.

Return Value

void

static array getSubscribedEvents()

{@inheritdoc}

Return Value

array