Base class for events thrown in the HttpKernel component
@author Bernhard Schussek <bschussek@gmail.com>
@api
Expanded class hierarchy of KernelEvent
class KernelEvent extends Event {
  /**
   * The kernel in which this event was thrown
   * @var Symfony\Component\HttpKernel\HttpKernelInterface
   */
  private $kernel;
  /**
   * The request the kernel is currently processing
   * @var Symfony\Component\HttpFoundation\Request
   */
  private $request;
  /**
   * The request type the kernel is currently processing.  One of
   * HttpKernelInterface::MASTER_REQUEST and HttpKernelInterface::SUB_REQUEST
   * @var integer
   */
  private $requestType;
  public function __construct(HttpKernelInterface $kernel, Request $request, $requestType) {
    $this->kernel = $kernel;
    $this->request = $request;
    $this->requestType = $requestType;
  }
  /**
   * Returns the kernel in which this event was thrown
   *
   * @return Symfony\Component\HttpKernel\HttpKernelInterface
   *
   * @api
   */
  public function getKernel() {
    return $this->kernel;
  }
  /**
   * Returns the request the kernel is currently processing
   *
   * @return Symfony\Component\HttpFoundation\Request
   *
   * @api
   */
  public function getRequest() {
    return $this->request;
  }
  /**
   * Returns the request type the kernel is currently processing
   *
   * @return integer  One of HttpKernelInterface::MASTER_REQUEST and
   *                  HttpKernelInterface::SUB_REQUEST
   *
   * @api
   */
  public function getRequestType() {
    return $this->requestType;
  }
}| 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. | |
| KernelEvent:: | private | property | The kernel in which this event was thrown | |
| KernelEvent:: | private | property | The request the kernel is currently processing | |
| KernelEvent:: | private | property | The request type the kernel is currently processing. One of HttpKernelInterface::MASTER_REQUEST and HttpKernelInterface::SUB_REQUEST | |
| KernelEvent:: | public | function | Returns the kernel in which this event was thrown | |
| KernelEvent:: | public | function | Returns the request the kernel is currently processing | |
| KernelEvent:: | public | function | Returns the request type the kernel is currently processing | |
| KernelEvent:: | public | function | 4 |