Application
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()
Dispatches an HTTP request to a front controller.
createInitialRequest()
Creates request from the current HTTP request via router.
Request|null
createErrorRequest(Throwable $e)
Creates a forward request to the error presenter, or returns null if not configured.
array
getRequests()
Returns all processed requests.
IPresenter|null
getPresenter()
Returns current presenter.
Router
getRouter()
No description
getPresenterFactory()
No description
Details
at line 51
__construct(IPresenterFactory $presenterFactory, Router $router, IRequest $httpRequest, IResponse $httpResponse)
No description
at line 63
void
run()
Dispatches an HTTP request to a front controller.
at line 96
Request
createInitialRequest()
Creates request from the current HTTP request via router.
at line 123
Response
processRequest(Request $request)
Processes a presenter request and dispatches the response.
at line 165
Request|null
createErrorRequest(Throwable $e)
Creates a forward request to the error presenter, or returns null if not configured.
at line 204
final array
getRequests()
Returns all processed requests.
at line 213
final IPresenter|null
getPresenter()
Returns current presenter.
at line 222
Router
getRouter()
No description
at line 228
IPresenterFactory
getPresenterFactory()
No description