FileAccess Orion

GlobalVariables
in package

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

Tags
author

Fabien Potencier fabien@symfony.com

deprecated

since version 4.3, to be removed in 5.0; use Twig instead.

Table of Contents

$container  : mixed
__construct()  : mixed
getDebug()  : bool
getEnvironment()  : string
getRequest()  : Request|null
getSession()  : Session|null
getToken()  : TokenInterface|null
getUser()  : mixed

Properties

Methods

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')

getToken()

public getToken() : TokenInterface|null
Return values
TokenInterface|null

Search results