PHP Class Symfony\Component\HttpKernel\BaseHttpKernel

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

Protected Properties

Свойство Type Description
$dispatcher
$resolver

Méthodes publiques

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

Méthodes protégées

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

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

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)
Résultat Symfony\Component\HttpFoundation\Response The filtered Response instance

handle() public méthode

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

handleRaw() protected méthode

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)
Résultat Symfony\Component\HttpFoundation\Response A Response instance

Property Details

$dispatcher protected_oe property

protected $dispatcher

$resolver protected_oe property

protected $resolver