public function PathTranslator::__construct in Decoupled Router 2.x
Same name and namespace in other branches
- 8 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 42
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;
}