class PostResponseEvent in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/Event/PostResponseEvent.php \Symfony\Component\HttpKernel\Event\PostResponseEvent
Allows to execute logic after a response was sent.
@author Jordi Boggiano <j.boggiano@seld.be>
Hierarchy
- class \Symfony\Component\EventDispatcher\Event
- class \Symfony\Component\HttpKernel\Event\PostResponseEvent
Expanded class hierarchy of PostResponseEvent
9 files declare their use of PostResponseEvent
- AutomatedCron.php in core/
modules/ automated_cron/ src/ EventSubscriber/ AutomatedCron.php - Contains \Drupal\automated_cron\EventSubscriber\AutomatedCron.
- HttpKernel.php in vendor/
symfony/ http-kernel/ HttpKernel.php - KernelDestructionSubscriber.php in core/
lib/ Drupal/ Core/ EventSubscriber/ KernelDestructionSubscriber.php - Contains \Drupal\Core\EventSubscriber\KernelDestructionSubscriber.
- PathSubscriber.php in core/
lib/ Drupal/ Core/ EventSubscriber/ PathSubscriber.php - Contains \Drupal\Core\EventSubscriber\PathSubscriber.
- ProfilerListener.php in vendor/
symfony/ http-kernel/ EventListener/ ProfilerListener.php
File
- vendor/
symfony/ http-kernel/ Event/ PostResponseEvent.php, line 24
Namespace
Symfony\Component\HttpKernel\EventView source
class PostResponseEvent extends Event {
/**
* The kernel in which this event was thrown.
*
* @var HttpKernelInterface
*/
private $kernel;
private $request;
private $response;
public function __construct(HttpKernelInterface $kernel, Request $request, Response $response) {
$this->kernel = $kernel;
$this->request = $request;
$this->response = $response;
}
/**
* Returns the kernel in which this event was thrown.
*
* @return HttpKernelInterface
*/
public function getKernel() {
return $this->kernel;
}
/**
* Returns the request for which this event was thrown.
*
* @return Request
*/
public function getRequest() {
return $this->request;
}
/**
* Returns the response for which this event was thrown.
*
* @return Response
*/
public function getResponse() {
return $this->response;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Event:: |
private | property | ||
Event:: |
private | property | ||
Event:: |
private | property | ||
Event:: |
public | function | Returns the EventDispatcher that dispatches this Event. | |
Event:: |
public | function | Gets the event's name. | |
Event:: |
public | function | Returns whether further event listeners should be triggered. | |
Event:: |
public | function | Stores the EventDispatcher that dispatches this Event. | |
Event:: |
public | function | Sets the event's name property. | |
Event:: |
public | function | Stops the propagation of the event to further event listeners. | |
PostResponseEvent:: |
private | property | The kernel in which this event was thrown. | |
PostResponseEvent:: |
private | property | ||
PostResponseEvent:: |
private | property | ||
PostResponseEvent:: |
public | function | Returns the kernel in which this event was thrown. | |
PostResponseEvent:: |
public | function | Returns the request for which this event was thrown. | |
PostResponseEvent:: |
public | function | Returns the response for which this event was thrown. | |
PostResponseEvent:: |
public | function |