You are here

class PostResponseEvent in Zircon Profile 8

Same name and namespace in other branches
  1. 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

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

... See full list

File

vendor/symfony/http-kernel/Event/PostResponseEvent.php, line 24

Namespace

Symfony\Component\HttpKernel\Event
View 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

Namesort descending Modifiers Type Description Overrides
Event::$dispatcher private property
Event::$name private property
Event::$propagationStopped private property
Event::getDispatcher Deprecated public function Returns the EventDispatcher that dispatches this Event.
Event::getName Deprecated public function Gets the event's name.
Event::isPropagationStopped public function Returns whether further event listeners should be triggered.
Event::setDispatcher Deprecated public function Stores the EventDispatcher that dispatches this Event.
Event::setName Deprecated public function Sets the event's name property.
Event::stopPropagation public function Stops the propagation of the event to further event listeners.
PostResponseEvent::$kernel private property The kernel in which this event was thrown.
PostResponseEvent::$request private property
PostResponseEvent::$response private property
PostResponseEvent::getKernel public function Returns the kernel in which this event was thrown.
PostResponseEvent::getRequest public function Returns the request for which this event was thrown.
PostResponseEvent::getResponse public function Returns the response for which this event was thrown.
PostResponseEvent::__construct public function