You are here

public function RouterRebuildSubscriber::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/EventSubscriber/RouterRebuildSubscriber.php \Drupal\Core\EventSubscriber\RouterRebuildSubscriber::__construct()

Constructs the RouterRebuildSubscriber object.

Parameters

\Drupal\Core\Routing\RouteBuilderInterface $route_builder: The route builder.

File

core/lib/Drupal/Core/EventSubscriber/RouterRebuildSubscriber.php, line 31
Contains \Drupal\Core\EventSubscriber\RouterRebuildSubscriber.

Class

RouterRebuildSubscriber
Rebuilds the router if needed at the end of the request.

Namespace

Drupal\Core\EventSubscriber

Code

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