AnonymousUserResponseSubscriber
class AnonymousUserResponseSubscriber implements EventSubscriberInterface (View source)
Response subscriber to handle finished responses for the anonymous user.
Properties
| protected AccountInterface | $currentUser | The current user. |
Methods
onRespond(FilterResponseEvent $event)
Adds a cache tag if the 'user.permissions' cache context is present.
static array
getSubscribedEvents()
Registers the methods in this class that should be listeners.
Details
__construct(AccountInterface $current_user)
Constructs an AnonymousUserResponseSubscriber object.
onRespond(FilterResponseEvent $event)
Adds a cache tag if the 'user.permissions' cache context is present.
static array
getSubscribedEvents()
Registers the methods in this class that should be listeners.