class GlobalVariables

GlobalVariables is the entry point for Symfony global variables in PHP templates.

Methods

__construct(ContainerInterface $container)

No description

getToken()

No description

getUser()

No description

Request|null
getRequest()

No description

Session|null
getSession()

No description

string
getEnvironment()

No description

bool
getDebug()

No description

Details

at line line 28
__construct(ContainerInterface $container)

Parameters

ContainerInterface $container

at line line 36
TokenInterface|null getToken()

Return Value

TokenInterface|null

at line line 45
getUser()

at line line 62
Request|null getRequest()

Return Value

Request|null The HTTP request object

at line line 72
Session|null getSession()

Return Value

Session|null The session

at line line 82
string getEnvironment()

Return Value

string The current environment string (e.g 'dev')

at line line 90
bool getDebug()

Return Value

bool The current debug mode