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
Table of Contents
Interfaces
Properties
- $getEnv : Closure|null
- $serviceCompiler : Closure|null
Methods
- __construct() : mixed
- getFunctions() : array<string|int, ExpressionFunction>
Properties
$getEnv
private
Closure|null
$getEnv
$serviceCompiler
private
Closure|null
$serviceCompiler
Methods
__construct()
public
__construct([callable|null $serviceCompiler = null ][, Closure|null $getEnv = null ]) : mixed
Parameters
- $serviceCompiler : callable|null = null
- $getEnv : Closure|null = null
getFunctions()
public
getFunctions() : array<string|int, ExpressionFunction>