PHP Class Symfony\Component\HttpKernel\Event\KernelEvent

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

Méthodes publiques

Méthode 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 méthode

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

getKernel() public méthode

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

getRequest() public méthode

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

getRequestType() public méthode

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