public function PathTranslator::__construct in Decoupled Router 8
Same name and namespace in other branches
- 2.x src/Controller/PathTranslator.php \Drupal\decoupled_router\Controller\PathTranslator::__construct()
EventInfoController constructor.
Parameters
\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: Event dispatcher service.
\Symfony\Component\HttpKernel\HttpKernelInterface $http_kernel: The HTTP kernel.
File
- src/
Controller/ PathTranslator.php, line 44
Class
- PathTranslator
- Controller that receives the path to inspect.
Namespace
Drupal\decoupled_router\ControllerCode
public function __construct(EventDispatcherInterface $event_dispatcher, HttpKernelInterface $http_kernel) {
$this->eventDispatcher = $event_dispatcher;
$this->httpKernel = $http_kernel;
}