[ Index ]

PHP Cross Reference of phpBB-3.3.5-deutsch




/vendor/symfony/twig-bridge/ -> AppVariable.php (summary)

(no description)

File Size: 180 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

AppVariable:: (11 methods):

Class: AppVariable  - X-Ref

Exposes some Symfony parameters and services as an "app" global variable.

setTokenStorage(TokenStorageInterface $tokenStorage)   X-Ref
No description

setRequestStack(RequestStack $requestStack)   X-Ref
No description

setEnvironment($environment)   X-Ref
No description

setDebug($debug)   X-Ref
No description

getToken()   X-Ref
Returns the current token.

return: TokenInterface|null

getUser()   X-Ref
Returns the current user.

return: object|null

getRequest()   X-Ref
Returns the current request.

return: Request|null The HTTP request object

getSession()   X-Ref
Returns the current session.

return: Session|null The session

getEnvironment()   X-Ref
Returns the current app environment.

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

getDebug()   X-Ref
Returns the current app debug mode.

return: bool The current debug mode

getFlashes($types = null)   X-Ref
Returns some or all the existing flash messages:
* getFlashes() returns all the flash messages
* getFlashes('notice') returns a simple array with flash messages of that type
* getFlashes(['notice', 'error']) returns a nested array of type => messages.

return: array

Generated: Mon Oct 4 17:42:11 2021 Cross-referenced by PHPXref 0.7.1