PHP Класс Symfony\Component\HttpKernel\BaseHttpKernel

Автор: Fabien Potencier ([email protected])
Наследование: implements Symfony\Component\HttpKernel\HttpKernelInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$dispatcher
$resolver

Открытые методы

Метод Описание
__construct ( EventDispatcher $dispatcher, Symfony\Component\HttpKernel\Controller\ControllerResolverInterface $resolver ) Constructor
handle ( Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true )

Защищенные методы

Метод Описание
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.

Описание методов

__construct() публичный Метод

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() защищенный Метод

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)
Результат Symfony\Component\HttpFoundation\Response The filtered Response instance

handle() публичный Метод

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

handleRaw() защищенный Метод

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)
Результат Symfony\Component\HttpFoundation\Response A Response instance

Описание свойств

$dispatcher защищенное свойство

protected $dispatcher

$resolver защищенное свойство

protected $resolver