You are here

public function ConfigSubscriber::__construct in JSON:API Extras 8.2

Same name and namespace in other branches
  1. 8.3 src/EventSubscriber/ConfigSubscriber.php \Drupal\jsonapi_extras\EventSubscriber\ConfigSubscriber::__construct()

Constructs a ConfigSubscriber object.

Parameters

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

\Drupal\Core\Routing\RouteBuilderInterface $route_builder: The route building service.

File

src/EventSubscriber/ConfigSubscriber.php, line 41

Class

ConfigSubscriber
Associates config cache tag and rebuilds container + routes when necessary.

Namespace

Drupal\jsonapi_extras\EventSubscriber

Code

public function __construct(DrupalKernelInterface $drupal_kernel, RouteBuilderInterface $route_builder) {
  $this->drupalKernel = $drupal_kernel;
  $this->routeBuilder = $route_builder;
}