class AppVariable
Exposes some Symfony parameters and services as an "app" global variable.
Methods
| setTokenStorage(TokenStorageInterface $tokenStorage) | ||
| setRequestStack(RequestStack $requestStack) | ||
| setEnvironment($environment) | ||
| setDebug($debug) | ||
| 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
setTokenStorage(TokenStorageInterface $tokenStorage)
setRequestStack(RequestStack $requestStack)
setEnvironment($environment)
setDebug($debug)
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.
Please login to continue.