PHP Class Symfony\Bundle\FrameworkBundle\Templating\GlobalVariables

Author: Fabien Potencier ([email protected])
Exibir arquivo Open project: symfony/symfony

Protected Properties

Property Type Description
$container

Public Methods

Method Description
__construct ( Symfony\Component\DependencyInjection\ContainerInterface $container )
getDebug ( ) : boolean
getEnvironment ( ) : string
getRequest ( ) : Request | null
getSession ( ) : Symfony\Component\HttpFoundation\Session\Session | null
getToken ( ) : Symfony\Component\Security\Core\Authentication\Token\TokenInterface | null
getUser ( )

Method Details

__construct() public method

public __construct ( Symfony\Component\DependencyInjection\ContainerInterface $container )
$container Symfony\Component\DependencyInjection\ContainerInterface The DI container

getDebug() public method

public getDebug ( ) : boolean
return boolean The current debug mode

getEnvironment() public method

public getEnvironment ( ) : string
return string The current environment string (e.g 'dev')

getRequest() public method

public getRequest ( ) : Request | null
return Symfony\Component\HttpFoundation\Request | null The HTTP request object

getSession() public method

public getSession ( ) : Symfony\Component\HttpFoundation\Session\Session | null
return Symfony\Component\HttpFoundation\Session\Session | null The session

getToken() public method

public getToken ( ) : Symfony\Component\Security\Core\Authentication\Token\TokenInterface | null
return Symfony\Component\Security\Core\Authentication\Token\TokenInterface | null

getUser() public method

public getUser ( )

Property Details

$container protected_oe property

protected $container