Drupal 8  8.0.2
RequestCloseSubscriber Class Reference
Inheritance diagram for RequestCloseSubscriber:

Public Member Functions

 __construct (ModuleHandlerInterface $module_handler)
 
 onTerminate (PostResponseEvent $event)
 

Static Public Member Functions

static getSubscribedEvents ()
 

Protected Attributes

 $moduleHandler
 

Detailed Description

Subscriber for all responses.

Constructor & Destructor Documentation

__construct ( ModuleHandlerInterface  $module_handler)

Constructs a new RequestCloseSubscriber instance.

Parameters
\Drupal\Core\Extension\ModuleHandlerInterface$module_handlerThe module handler.

References Drupal\moduleHandler().

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.
onTerminate ( PostResponseEvent  $event)

Performs end of request tasks.

Todo:
The body of this function has just been copied almost verbatim from drupal_page_footer(). There's probably a lot in here that needs to get removed/changed. Also, if possible, do more light-weight shutdowns on AJAX requests.
Parameters
Symfony\Component\HttpKernel\Event\PostResponseEvent$eventThe Event to process.

References Drupal\moduleHandler().

Here is the call graph for this function:


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