AppVariable
class AppVariable
Exposes some Symfony parameters and services as an "app" global variable.
Methods
setEnvironment($environment)
No description
setDebug($debug)
No description
mixed
getUser()
Returns the current user.
Request|null
getRequest()
Returns the current request.
Session|null
getSession()
Returns the current session.
string
getEnvironment()
Returns the current app environment.
bool
getDebug()
Returns the current app debug mode.
Details
at line line 31
setTokenStorage(TokenStorageInterface $tokenStorage)
at line line 36
setRequestStack(RequestStack $requestStack)
at line line 41
setEnvironment($environment)
at line line 46
setDebug($debug)
at line line 58
mixed
getUser()
Returns the current user.
at line line 81
Request|null
getRequest()
Returns the current request.
at line line 95
Session|null
getSession()
Returns the current session.
at line line 111
string
getEnvironment()
Returns the current app environment.
at line line 125
bool
getDebug()
Returns the current app debug mode.