Resolver

class \TYPO3\CMS\Core\ExpressionLanguage\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 $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

string

evaluate()

Evaluate an expression.

public evaluate(string $expression[, array $contextVariables = [] ]) : mixed

Parameters

$expression : string
$contextVariables : array = []
On this page