AppVariable
class AppVariable
Exposes some Symfony parameters and services as an "app" global variable.
Methods
setEnvironment($environment)
No description
setDebug($debug)
No description
TokenInterface|null
getToken()
Returns the current token.
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.
array
getFlashes($types = null)
Returns some or all the existing flash messages: * getFlashes() returns all the flash messages * getFlashes('notice') returns a simple array with flash messages of that type * getFlashes(array('notice', 'error')) returns a nested array of type => messages.