PHP Class Autarky\Http\Kernel

Inheritance: implements Symfony\Component\HttpKernel\HttpKernelInterface, implements Symfony\Component\HttpKernel\TerminableInterface
Show file Open project: autarky/framework

Protected Properties

Property Type Description
$errorHandler Autarky\Errors\ErrorHandlerInterface
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$requests Symfony\Component\HttpFoundation\RequestStack
$router Autarky\Routing\RouterInterface

Public Methods

Method Description
__construct ( Autarky\Routing\RouterInterface $router, Symfony\Component\HttpFoundation\RequestStack $requests, Autarky\Errors\ErrorHandlerInterface $errorHandler = null, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher = null )
handle ( Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true )
terminate ( Request $request, Response $response )

Protected Methods

Method Description
filterResponse ( Response $response, Request $request, $type )
finishRequest ( Request $request, $type )
handleException ( Exception $exception, Request $request, $type )
innerHandle ( Request $request, $type )

Method Details

__construct() public method

public __construct ( Autarky\Routing\RouterInterface $router, Symfony\Component\HttpFoundation\RequestStack $requests, Autarky\Errors\ErrorHandlerInterface $errorHandler = null, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher = null )
$router Autarky\Routing\RouterInterface
$requests Symfony\Component\HttpFoundation\RequestStack
$errorHandler Autarky\Errors\ErrorHandlerInterface Optional
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface Optional

filterResponse() protected method

protected filterResponse ( Response $response, Request $request, $type )
$response Symfony\Component\HttpFoundation\Response
$request Symfony\Component\HttpFoundation\Request

finishRequest() protected method

protected finishRequest ( Request $request, $type )
$request Symfony\Component\HttpFoundation\Request

handle() public method

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

handleException() protected method

protected handleException ( Exception $exception, Request $request, $type )
$exception Exception
$request Symfony\Component\HttpFoundation\Request

innerHandle() protected method

protected innerHandle ( Request $request, $type )
$request Symfony\Component\HttpFoundation\Request

terminate() public method

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

Property Details

$errorHandler protected property

protected ErrorHandlerInterface,Autarky\Errors $errorHandler
return Autarky\Errors\ErrorHandlerInterface

$eventDispatcher protected property

protected EventDispatcherInterface,Symfony\Component\EventDispatcher $eventDispatcher
return Symfony\Component\EventDispatcher\EventDispatcherInterface

$requests protected property

protected RequestStack,Symfony\Component\HttpFoundation $requests
return Symfony\Component\HttpFoundation\RequestStack

$router protected property

protected RouterInterface,Autarky\Routing $router
return Autarky\Routing\RouterInterface