PathAliasSubscriber
class PathAliasSubscriber extends PathSubscriber (View source)
Provides a path subscriber that converts path aliases.
Properties
| protected AliasManagerInterface | $aliasManager | The alias manager that caches alias lookups based on the request. |
from PathSubscriber |
| protected CurrentPathStack | $currentPath | The current path. |
from PathSubscriber |
Methods
__construct(AliasManagerInterface $alias_manager, CurrentPathStack $current_path)
Constructs a new PathSubscriber instance.
from
PathSubscriber
onKernelController(FilterControllerEvent $event)
Sets the cache key on the alias manager cache decorator.
from
PathSubscriber
onKernelTerminate(PostResponseEvent $event)
Ensures system paths for the request get cached.
from
PathSubscriber
static array
getSubscribedEvents()
Registers the methods in this class that should be listeners.
from
PathSubscriber
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.