W3cubDocs

/Symfony 4.1

ExpressionLanguageProvider

class ExpressionLanguageProvider implements ExpressionFunctionProviderInterface

Define some ExpressionLanguage functions.

To get a service, use service('request'). To get a parameter, use parameter('kernel.debug').

Methods

__construct(callable $serviceCompiler = null)
ExpressionFunction[] getFunctions()

Details

__construct(callable $serviceCompiler = null)

Parameters

callable $serviceCompiler

ExpressionFunction[] getFunctions()

Return Value

ExpressionFunction[] An array of Function instances

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/DependencyInjection/ExpressionLanguageProvider.html