You are here

public function ConfigSubscriber::__construct in HTTP/2 Server Push 8

Constructs a ConfigSubscriber object.

Parameters

\Drupal\Core\Cache\CacheTagsInvalidatorInterface $cache_tags_invalidator: The cache tags invalidator.

\Drupal\Core\DrupalKernelInterface $drupal_kernel: The Drupal kernel.

\Drupal\Core\Config\ConfigInstallerInterface $config_installer: The config installer.

File

src/EventSubscriber/ConfigSubscriber.php, line 48

Class

ConfigSubscriber
Invalidates cache tags & rebuilds container when necessary.

Namespace

Drupal\http2_server_push\EventSubscriber

Code

public function __construct(CacheTagsInvalidatorInterface $cache_tags_invalidator, DrupalKernelInterface $drupal_kernel, ConfigInstallerInterface $config_installer) {
  $this->cacheTagsInvalidator = $cache_tags_invalidator;
  $this->drupalKernel = $drupal_kernel;
  $this->configInstaller = $config_installer;
}