class GlobalVariables
GlobalVariables is the entry point for Symfony global variables in PHP templates.
__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. |
Returns the current user.
Returns the current request.
Returns the current session.
Returns the current app environment.
Returns the current app debug mode.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.2/Symfony/Bundle/FrameworkBundle/Templating/GlobalVariables.html