public function RouterPathTranslatorSubscriber::__construct in Decoupled Router 8
Same name and namespace in other branches
- 2.x src/EventSubscriber/RouterPathTranslatorSubscriber.php \Drupal\decoupled_router\EventSubscriber\RouterPathTranslatorSubscriber::__construct()
RouterPathTranslatorSubscriber constructor.
Parameters
\Symfony\Component\DependencyInjection\ContainerInterface $container: The service container.
\Psr\Log\LoggerInterface $logger: The logger.
\Symfony\Component\Routing\Matcher\UrlMatcherInterface $router: The router.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory
\Drupal\path_alias\AliasManagerInterface $aliasManager: The alias manager
File
- src/
EventSubscriber/ RouterPathTranslatorSubscriber.php, line 91
Class
- RouterPathTranslatorSubscriber
- Event subscriber that processes a path translation with the router info.
Namespace
Drupal\decoupled_router\EventSubscriberCode
public function __construct(ContainerInterface $container, LoggerInterface $logger, UrlMatcherInterface $router, ModuleHandlerInterface $module_handler, ConfigFactoryInterface $config_factory, AliasManagerInterface $aliasManager) {
$this->container = $container;
$this->logger = $logger;
$this->router = $router;
$this->moduleHandler = $module_handler;
$this->configFactory = $config_factory;
$this->aliasManager = $aliasManager;
}