class Application

Front Controller.

Properties

$maxLoop
deprecated $catchExceptions
$errorPresenter
$error4xxPresenter
$onStartup
$onShutdown
$onRequest
$onPresenter
$onResponse
$onError

Methods

__construct(IPresenterFactory $presenterFactory, Router $router, IRequest $httpRequest, IResponse $httpResponse)

No description

void
run()

Dispatch a HTTP request to a front controller.

createInitialRequest()

No description

void
processRequest(Request $request)

No description

Request|null
createErrorRequest(Throwable $e)

No description

array
getRequests()

Returns all processed requests.

IPresenter|null
getPresenter()

Returns current presenter.

Router
getRouter()

Returns router.

getPresenterFactory()

Returns presenter factory.

Details

at line 56
__construct(IPresenterFactory $presenterFactory, Router $router, IRequest $httpRequest, IResponse $httpResponse)

No description

Parameters

IPresenterFactory $presenterFactory
Router $router
IRequest $httpRequest
IResponse $httpResponse

at line 72
void run()

Dispatch a HTTP request to a front controller.

Return Value

void

at line 99
Request createInitialRequest()

No description

Return Value

Request

at line 123
void processRequest(Request $request)

No description

Parameters

Request $request

Return Value

void

at line 162
Request|null createErrorRequest(Throwable $e)

No description

Parameters

Throwable $e

Return Value

Request|null

at line 201
final array getRequests()

Returns all processed requests.

Return Value

array

at line 210
final IPresenter|null getPresenter()

Returns current presenter.

Return Value

IPresenter|null

at line 222
Router getRouter()

Returns router.

Return Value

Router

at line 231
IPresenterFactory getPresenterFactory()

Returns presenter factory.

Return Value

IPresenterFactory