class RouterListener implements EventSubscriberInterface
Initializes the context from the request and sets request attributes based on a matching route.
Methods
__construct(UrlMatcherInterface|RequestMatcherInterface $matcher, RequestStack $requestStack, RequestContext $context = null, LoggerInterface $logger = null) Constructor.
onKernelFinishRequest(FinishRequestEvent $event) After a sub-request is done, we need to reset the routing context to the parent request so that the URL ge