Application
class Application
Front Controller.
Properties
int | $maxLoop | ||
bool | $catchExceptions | ||
string|null | $errorPresenter | ||
$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
void
array
getRequests()
Returns all processed requests.
IPresenter|null
getPresenter()
Returns current presenter.
Router
getRouter()
Returns router.
getPresenterFactory()
Returns presenter factory.
Details
at line 70
__construct(IPresenterFactory $presenterFactory, Router $router, IRequest $httpRequest, IResponse $httpResponse)
No description
at line 86
void
run()
Dispatch a HTTP request to a front controller.
at line 112
Request
createInitialRequest()
No description
at line 137
void
processRequest(Request $request)
No description
at line 175
void
processException(Throwable $e)
No description
at line 202
final array
getRequests()
Returns all processed requests.
at line 211
final IPresenter|null
getPresenter()
Returns current presenter.
at line 223
Router
getRouter()
Returns router.
at line 232
IPresenterFactory
getPresenterFactory()
Returns presenter factory.
Traits
SmartObject