function RouteProviderLazyBuilder::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php \Drupal\Core\Routing\RouteProviderLazyBuilder::__construct()
  2. 8.9.x core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php \Drupal\Core\Routing\RouteProviderLazyBuilder::__construct()
  3. 10 core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php \Drupal\Core\Routing\RouteProviderLazyBuilder::__construct()

RouteProviderLazyBuilder constructor.

Parameters

\Drupal\Core\Routing\RouteProviderInterface $route_provider: The route provider service.

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

File

core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php, line 54

Class

RouteProviderLazyBuilder
A Route Provider front-end for all Drupal-stored routes.

Namespace

Drupal\Core\Routing

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.