Drupal 8  8.0.2
AnonymousUserResponseSubscriber Class Reference
Inheritance diagram for AnonymousUserResponseSubscriber:

Public Member Functions

 __construct (AccountInterface $current_user)
 
 onRespond (FilterResponseEvent $event)
 

Static Public Member Functions

static getSubscribedEvents ()
 

Protected Attributes

 $currentUser
 

Detailed Description

Response subscriber to handle finished responses for the anonymous user.

Constructor & Destructor Documentation

__construct ( AccountInterface  $current_user)

Constructs an AnonymousUserResponseSubscriber object.

Parameters
\Drupal\Core\Session\AccountInterface$current_userThe current user.

References Drupal\currentUser().

Here is the call graph for this function:

Member Function Documentation

static getSubscribedEvents ( )
static

Registers the methods in this class that should be listeners.

Returns
array An array of event listener definitions.
onRespond ( FilterResponseEvent  $event)

Adds a cache tag if the 'user.permissions' cache context is present.

Parameters
\Symfony\Component\HttpKernel\Event\FilterResponseEvent$eventThe event to process.

References Drupal\currentUser().

Here is the call graph for this function:


The documentation for this class was generated from the following file: