PathSubscriber deprecated
class PathSubscriber implements EventSubscriberInterface (View source)
deprecated
Provides a path subscriber that converts path aliases.
Properties
| protected AliasManagerInterface | $aliasManager | The alias manager that caches alias lookups based on the request. |
|
| protected CurrentPathStack | $currentPath | The current path. |
Methods
Constructs a new PathSubscriber instance.
Sets the cache key on the alias manager cache decorator.
Ensures system paths for the request get cached.
Registers the methods in this class that should be listeners.
Details
__construct(AliasManagerInterface $alias_manager, CurrentPathStack $current_path)
Constructs a new PathSubscriber instance.
onKernelController(FilterControllerEvent $event)
Sets the cache key on the alias manager cache decorator.
KernelEvents::CONTROLLER is used in order to be executed after routing.
onKernelTerminate(PostResponseEvent $event)
Ensures system paths for the request get cached.
static array
getSubscribedEvents()
Registers the methods in this class that should be listeners.