Property | Type | Description | |
---|---|---|---|
$catchExceptions | enable fault barrier? | ||
$errorPresenter | string | ||
$maxLoop | integer | ||
$onError | function (Application $sender, \Exception|\Throwable $e); Occurs when an unhandled exception occurs in the application | ||
$onPresenter | function (Application $sender, Presenter $presenter); Occurs when a presenter is created | ||
$onRequest | function (Application $sender, Request $request); Occurs when a new request is received | ||
$onResponse | function (Application $sender, IResponse $response); Occurs when a new response is ready for dispatch | ||
$onShutdown | function (Application $sender, \Exception|\Throwable $e = NULL); Occurs before the application shuts down | ||
$onStartup | function (Application $sender); Occurs before the application loads presenter |
Method | Description | |
---|---|---|
__construct ( Nette\Application\IPresenterFactory $presenterFactory, Nette\Application\IRouter $router, Nette\Http\IRequest $httpRequest, Nette\Http\IResponse $httpResponse ) | ||
createInitialRequest ( ) : Nette\Application\Request | ||
getPresenter ( ) : Nette\Application\IPresenter | Returns current presenter. | |
getPresenterFactory ( ) : Nette\Application\IPresenterFactory | Returns presenter factory. | |
getRequests ( ) : Nette\Application\Request[] | Returns all processed requests. | |
getRouter ( ) : Nette\Application\IRouter | Returns router. | |
processException ( $e ) : void | ||
processRequest ( Nette\Application\Request $request ) : void | ||
run ( ) : void | Dispatch a HTTP request to a front controller. |
public __construct ( Nette\Application\IPresenterFactory $presenterFactory, Nette\Application\IRouter $router, Nette\Http\IRequest $httpRequest, Nette\Http\IResponse $httpResponse ) | ||
$presenterFactory | Nette\Application\IPresenterFactory | |
$router | Nette\Application\IRouter | |
$httpRequest | Nette\Http\IRequest | |
$httpResponse | Nette\Http\IResponse |
public createInitialRequest ( ) : Nette\Application\Request | ||
return | Nette\Application\Request |
public getPresenter ( ) : Nette\Application\IPresenter | ||
return | Nette\Application\IPresenter |
public getPresenterFactory ( ) : Nette\Application\IPresenterFactory | ||
return | Nette\Application\IPresenterFactory |
public getRequests ( ) : Nette\Application\Request[] | ||
return | Nette\Application\Request[] |
public getRouter ( ) : Nette\Application\IRouter | ||
return | Nette\Application\IRouter |
public processRequest ( Nette\Application\Request $request ) : void | ||
$request | Nette\Application\Request | |
return | void |
public $onError |
public $onPresenter |
public $onRequest |
public $onResponse |
public $onShutdown |