public function NullGenerator::__construct in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Routing/NullGenerator.php \Drupal\Core\Routing\NullGenerator::__construct()
Override the parent constructor.
Parameters
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
Overrides UrlGenerator::__construct
File
- core/
lib/ Drupal/ Core/ Routing/ NullGenerator.php, line 27 - Contains \Drupal\Core\Routing\NullGenerator.
Class
- NullGenerator
- No-op implementation of a Url Generator, needed for backward compatibility.
Namespace
Drupal\Core\RoutingCode
public function __construct(RequestStack $request_stack) {
$this->requestStack = $request_stack;
$this->context = new RequestContext();
}