Application
class Application extends Object
Front Controller.
Properties
static int | $maxLoop | ||
array | $defaultServices | ||
bool | $catchExceptions | ||
string | $errorPresenter | ||
array | $onStartup | ||
array | $onShutdown | ||
array | $onRequest | ||
array | $onError | ||
array | $allowedMethods |
Methods
Dispatch a HTTP request to a front controller.
Returns all processed requests.
Returns current presenter.
Gets the service locator (experimental).
Gets the service object of the specified type.
Returns presenter loader.
No description
Stores current request to session.
Restores current request to session.
No description
No description
No description
Details
at line 84
void
run()
Dispatch a HTTP request to a front controller.
at line 222
final array
getRequests()
Returns all processed requests.
at line 233
final Presenter
getPresenter()
Returns current presenter.
at line 248
final IServiceLocator
getServiceLocator()
Gets the service locator (experimental).
at line 270
final object
getService($name, array $options = NULL)
Gets the service object of the specified type.
at line 281
IRouter
getRouter()
Returns router.
at line 293
Application
setRouter(IRouter $router)
Changes router.
at line 305
IPresenterLoader
getPresenterLoader()
Returns presenter loader.
at line 319
static IPresenterLoader
createPresenterLoader()
No description
at line 335
string
storeRequest($expiration = '+ 10 minutes')
Stores current request to session.
at line 354
void
restoreRequest($key)
Restores current request to session.
at line 374
protected IHttpRequest
getHttpRequest()
No description
at line 384
protected IHttpResponse
getHttpResponse()
No description
at line 394
protected Session
getSession($namespace = NULL)
No description