PHP Class Symfony\Component\HttpKernel\BaseHttpKernel

Author: Fabien Potencier ([email protected])
Inheritance: implements Symfony\Component\HttpKernel\HttpKernelInterface
Show file Open project: pmjones/php-framework-benchmarks Class Usage Examples

Protected Properties

Property Type Description
$dispatcher
$resolver

Public Methods

Method Description
__construct ( EventDispatcher $dispatcher, Symfony\Component\HttpKernel\Controller\ControllerResolverInterface $resolver ) Constructor
handle ( Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true )

Protected Methods

Method Description
filterResponse ( Response $response, $request, string $message, integer $type ) : Response Filters a response object.
handleRaw ( Request $request, integer $type = self::MASTER_REQUEST ) : Response Handles a request to convert it to a response.

Method Details

__construct() public method

Constructor
public __construct ( EventDispatcher $dispatcher, Symfony\Component\HttpKernel\Controller\ControllerResolverInterface $resolver )
$dispatcher Symfony\Component\EventDispatcher\EventDispatcher An event dispatcher instance
$resolver Symfony\Component\HttpKernel\Controller\ControllerResolverInterface A ControllerResolverInterface instance

filterResponse() protected method

Filters a response object.
protected filterResponse ( Response $response, $request, string $message, integer $type ) : Response
$response Symfony\Component\HttpFoundation\Response A Response instance
$message string A error message in case the response is not a Response object
$type integer The type of the request (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST)
return Symfony\Component\HttpFoundation\Response The filtered Response instance

handle() public method

public handle ( Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true )
$request Symfony\Component\HttpFoundation\Request

handleRaw() protected method

Exceptions are not caught.
protected handleRaw ( Request $request, integer $type = self::MASTER_REQUEST ) : Response
$request Symfony\Component\HttpFoundation\Request A Request instance
$type integer The type of the request (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST)
return Symfony\Component\HttpFoundation\Response A Response instance

Property Details

$dispatcher protected property

protected $dispatcher

$resolver protected property

protected $resolver