class GlobalVariables

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

Properties

protected $container

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

__construct(ContainerInterface $container)

Parameters

ContainerInterface $container

TokenInterface|null getToken()

Return Value

TokenInterface|null

getUser()

Request|null getRequest()

Return Value

Request|null The HTTP request object

Session|null getSession()

Return Value

Session|null The session

string getEnvironment()

Return Value

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

bool getDebug()

Return Value

bool The current debug mode