GlobalVariables
in package
GlobalVariables is the entry point for Symfony global variables in PHP templates.
Tags
Table of Contents
- $container : mixed
- __construct() : mixed
- getDebug() : bool
- getEnvironment() : string
- getRequest() : Request|null
- getSession() : Session|null
- getToken() : TokenInterface|null
- getUser() : mixed
Properties
$container
protected
mixed
$container
Methods
__construct()
public
__construct(ContainerInterface $container) : mixed
Parameters
- $container : ContainerInterface
Return values
mixed —getDebug()
public
getDebug() : bool
Return values
bool —The current debug mode
getEnvironment()
public
getEnvironment() : string
Return values
string —The current environment string (e.g 'dev')
getRequest()
public
getRequest() : Request|null
Return values
Request|null —The HTTP request object
getSession()
public
getSession() : Session|null
Return values
Session|null —The session
getToken()
public
getToken() : TokenInterface|null
Return values
TokenInterface|null —getUser()
public
getUser() : mixed