Documentation

ExpressionLanguageProvider
in package
implements ExpressionFunctionProviderInterface

Define some ExpressionLanguage functions.

To get a service, use service('request'). To get a parameter, use parameter('kernel.debug'). To get an env variable, use env('SOME_VARIABLE').

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

Interfaces

ExpressionFunctionProviderInterface

Properties

$getEnv  : Closure|null
$serviceCompiler  : Closure|null

Methods

__construct()  : mixed
getFunctions()  : array<string|int, ExpressionFunction>

Properties

Methods

__construct()

public __construct([callable|null $serviceCompiler = null ][, Closure|null $getEnv = null ]) : mixed
Parameters
$serviceCompiler : callable|null = null
$getEnv : Closure|null = null

        
On this page

Search results