GlobalVariables
class GlobalVariables
GlobalVariables — точка входа для глобальных переменных Symfony в шаблонах PHP.
Methods
| __construct(ContainerInterface $container) | ||
| TokenInterface|null | getToken() | |
| getUser() | ||
| Request|null | getRequest() | |
| Session|null | getSession() | |
| string | getEnvironment() | |
| bool | getDebug() |
Details
__construct(ContainerInterface $container)
Parameters
| ContainerInterface | $container |
TokenInterface|null getToken()
Return Value
| TokenInterface|null |
getUser()
Request|null getRequest()
Return Value
| Request|null | Объект HTTP-запроса |
Session|null getSession()
Return Value
| Session|null | Сессия |
string getEnvironment()
Return Value
| string | Строка текущей среды (например, 'dev') |
bool getDebug()
Return Value
| bool | Текущий режим отладки |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.3/Symfony/Bundle/FrameworkBundle/Templating/GlobalVariables.html