Allows to execute logic after a response was sent
@author Jordi Boggiano <j.boggiano@seld.be>
Expanded class hierarchy of PostResponseEvent
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;
}
}
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 |