Resolver
class \
The main API endpoint to evaluate symfony expression language.
This Resolver can prepare common variables and functions for specific scopes, it is a "prepared" facade to symfony expression language that can load and provide things from Configuration.
Table of Contents
Methods
- __construct() : mixed
- compile() : string
- Compiles an expression to source code.
- evaluate() : mixed
- Evaluate an expression.
Methods
__construct()
public
__construct(string $context, array $variables) : mixed
Parameters
- $context : string
- $variables : array
compile()
Compiles an expression to source code.
public
compile(string $condition) : string
Currently unused in core: We may add support for this later to speed up condition parsing?
Parameters
- $condition : string
Return values
stringevaluate()
Evaluate an expression.
public
evaluate(string $expression[, array $contextVariables = [] ]) : mixed
Parameters
- $expression : string
- $contextVariables : array = []