class GlobalVariables
GlobalVariables is the entry point for Symfony global variables in PHP templates.
Methods
__construct(ContainerInterface $container) | ||
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
__construct(ContainerInterface $container)
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.