Base class for any application.
static getInstance()
Returns current instance of the Application.
Context of current request.
getCulture()
Returns culture of the context.
__construct(Application $application)
Creates new instance of context.
static getCurrent()
Static method returns current instance of context.
getResponse()
Returns response object of the context.
initialize(Request $request, Response $response=null, Server $server, array $params=array())
Initializes context by request and response objects.
setLanguage($language)
Sets language of the context.
getApplication()
Returns backreference to Application.
getServer()
Returns server object of the context.
setResponse(Response $response)
Sets response of the context.
getRequest()
Returns request object of the context.
setCulture(Context\Culture $culture)
Sets culture of the context.
setSite($site)
Sets site of the context.
getLanguage()
Returns current language (en, ru)