function RouteBuilder::__construct
Same name in this branch
- 9 core/lib/Drupal/Core/ProxyClass/Routing/RouteBuilder.php \Drupal\Core\ProxyClass\Routing\RouteBuilder::__construct()
Same name in other branches
- 8.9.x core/lib/Drupal/Core/ProxyClass/Routing/RouteBuilder.php \Drupal\Core\ProxyClass\Routing\RouteBuilder::__construct()
- 8.9.x core/lib/Drupal/Core/Routing/RouteBuilder.php \Drupal\Core\Routing\RouteBuilder::__construct()
- 10 core/lib/Drupal/Core/ProxyClass/Routing/RouteBuilder.php \Drupal\Core\ProxyClass\Routing\RouteBuilder::__construct()
- 10 core/lib/Drupal/Core/Routing/RouteBuilder.php \Drupal\Core\Routing\RouteBuilder::__construct()
- 11.x core/lib/Drupal/Core/ProxyClass/Routing/RouteBuilder.php \Drupal\Core\ProxyClass\Routing\RouteBuilder::__construct()
- 11.x core/lib/Drupal/Core/Routing/RouteBuilder.php \Drupal\Core\Routing\RouteBuilder::__construct()
Constructs the RouteBuilder using the passed MatcherDumperInterface.
Parameters
\Drupal\Core\Routing\MatcherDumperInterface $dumper: The matcher dumper used to store the route information.
\Drupal\Core\Lock\LockBackendInterface $lock: The lock backend.
\Symfony\Contracts\EventDispatcher\EventDispatcherInterface $dispatcher: The event dispatcher to notify of routes.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\Core\Controller\ControllerResolverInterface $controller_resolver: The controller resolver.
\Drupal\Core\Access\CheckProviderInterface $check_provider: The check provider.
File
-
core/
lib/ Drupal/ Core/ Routing/ RouteBuilder.php, line 100
Class
- RouteBuilder
- Managing class for rebuilding the router table.
Namespace
Drupal\Core\RoutingCode
public function __construct(MatcherDumperInterface $dumper, LockBackendInterface $lock, EventDispatcherInterface $dispatcher, ModuleHandlerInterface $module_handler, ControllerResolverInterface $controller_resolver, CheckProviderInterface $check_provider) {
$this->dumper = $dumper;
$this->lock = $lock;
$this->dispatcher = $dispatcher;
$this->moduleHandler = $module_handler;
$this->controllerResolver = $controller_resolver;
$this->checkProvider = $check_provider;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.