PHP Class Symfony\Component\HttpKernel\Event\KernelEvent

Author: Bernhard Schussek ([email protected])
Inheritance: extends Symfony\Component\EventDispatcher\Event
Show file Open project: pmjones/php-framework-benchmarks Class Usage Examples

Public Methods

Method Description
__construct ( Symfony\Component\HttpKernel\HttpKernelInterface $kernel, Request $request, $requestType )
getKernel ( ) : Symfony\Component\HttpKernel\HttpKernelInterface Returns the kernel in which this event was thrown
getRequest ( ) : Request Returns the request the kernel is currently processing
getRequestType ( ) : integer Returns the request type the kernel is currently processing

Method Details

__construct() public method

public __construct ( Symfony\Component\HttpKernel\HttpKernelInterface $kernel, Request $request, $requestType )
$kernel Symfony\Component\HttpKernel\HttpKernelInterface
$request Symfony\Component\HttpFoundation\Request

getKernel() public method

Returns the kernel in which this event was thrown
public getKernel ( ) : Symfony\Component\HttpKernel\HttpKernelInterface
return Symfony\Component\HttpKernel\HttpKernelInterface

getRequest() public method

Returns the request the kernel is currently processing
public getRequest ( ) : Request
return Symfony\Component\HttpFoundation\Request

getRequestType() public method

Returns the request type the kernel is currently processing
public getRequestType ( ) : integer
return integer One of HttpKernelInterface::MASTER_REQUEST and HttpKernelInterface::SUB_REQUEST