PHP Class Symfony\Component\HttpKernel\HttpKernel

Author: Fabien Potencier ([email protected])
Inheritance: extends BaseHttpKernel
显示文件 Open project: symfony/symfony Class Usage Examples

Protected Properties

Property Type Description
$dispatcher
$requestStack
$resolver

Public Methods

Method Description
__construct ( Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, Symfony\Component\HttpKernel\Controller\ControllerResolverInterface $resolver, Symfony\Component\HttpFoundation\RequestStack $requestStack = null, Symfony\Component\HttpKernel\Controller\ArgumentResolverInterface $argumentResolver = null )
handle ( Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true )
terminate ( Request $request, Response $response )
terminateWithException ( Exception $exception )

Private Methods

Method Description
filterResponse ( Response $response, Request $request, integer $type ) : Response Filters a response object.
finishRequest ( Request $request, integer $type ) Publishes the finish request event, then pop the request from the stack.
handleException ( Exception $e, Request $request, integer $type ) : Response Handles an exception by trying to convert it to a Response.
handleRaw ( Request $request, integer $type = self::MASTER_REQUEST ) : Response Handles a request to convert it to a response.
varToString ( $var )

Method Details

__construct() public method

public __construct ( Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, Symfony\Component\HttpKernel\Controller\ControllerResolverInterface $resolver, Symfony\Component\HttpFoundation\RequestStack $requestStack = null, Symfony\Component\HttpKernel\Controller\ArgumentResolverInterface $argumentResolver = null )
$dispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$resolver Symfony\Component\HttpKernel\Controller\ControllerResolverInterface
$requestStack Symfony\Component\HttpFoundation\RequestStack
$argumentResolver Symfony\Component\HttpKernel\Controller\ArgumentResolverInterface

handle() public method

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

terminate() public method

public terminate ( Request $request, Response $response )
$request Symfony\Component\HttpFoundation\Request
$response Symfony\Component\HttpFoundation\Response

terminateWithException() public method

public terminateWithException ( Exception $exception )
$exception Exception

Property Details

$dispatcher protected_oe property

protected $dispatcher

$requestStack protected_oe property

protected $requestStack

$resolver protected_oe property

protected $resolver