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.
http://api.symfony.com/4.0/Symfony/Component/DependencyInjection/ExpressionLanguageProvider.html