Свойство | Тип | Описание | |
---|---|---|---|
$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 |
Метод | Описание | |
---|---|---|
__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 | ||
Результат | Nette\Application\Request |
public getPresenter ( ) : Nette\Application\IPresenter | ||
Результат | Nette\Application\IPresenter |
public getPresenterFactory ( ) : Nette\Application\IPresenterFactory | ||
Результат | Nette\Application\IPresenterFactory |
public getRequests ( ) : Nette\Application\Request[] | ||
Результат | Nette\Application\Request[] |
public getRouter ( ) : Nette\Application\IRouter | ||
Результат | Nette\Application\IRouter |
public processRequest ( Nette\Application\Request $request ) : void | ||
$request | Nette\Application\Request | |
Результат | void |
public $onError |
public $onPresenter |
public $onRequest |
public $onResponse |
public $onShutdown |