Resolver

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<string|int, mixed> $variables) : mixed
Parameters
$context : string
$variables : array<string|int, mixed>

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
string

evaluate()

Evaluate an expression.

public evaluate(string $expression[, array<string|int, mixed> $contextVariables = [] ]) : mixed
Parameters
$expression : string
$contextVariables : array<string|int, mixed> = []

        
On this page

Search results