ExpressionLanguage
class ExpressionLanguage
Allows to compile and evaluate expressions written in your own DSL.
Properties
protected | $functions |
Methods
__construct(CacheItemPoolInterface $cache = null, array $providers = array())
No description
string
mixed
register(string $name, callable $compiler, callable $evaluator)
Registers a function.
registerFunctions()
No description
Details
string
compile(Expression|string $expression, array $names = array())
Compiles an expression source code.