PHP Class Neos\Eel\CompilingEvaluator

This simple implementation will lazily parse and evaluate the generated PHP code into a function with a name built from the hashed expression.
Inheritance: implements Neos\Eel\EelEvaluatorInterface
Mostrar archivo Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$expressionCache Neos\Cache\Frontend\PhpFrontend
$newExpressions array

Public Methods

Method Description
evaluate ( string $expression, Context $context ) : mixed Evaluate an expression under a given context
initializeObject ( ) Initialize the Evaluator
shutdownObject ( ) Shutdown the Evaluator

Protected Methods

Method Description
generateEvaluatorCode ( string $expression ) : string Internal generator method

Method Details

evaluate() public method

Evaluate an expression under a given context
public evaluate ( string $expression, Context $context ) : mixed
$expression string
$context Context
return mixed

generateEvaluatorCode() protected method

Used by unit tests to debug generated PHP code.
protected generateEvaluatorCode ( string $expression ) : string
$expression string
return string

initializeObject() public method

Initialize the Evaluator
public initializeObject ( )

shutdownObject() public method

Shutdown the Evaluator
public shutdownObject ( )

Property Details

$expressionCache protected_oe property

protected PhpFrontend,Neos\Cache\Frontend $expressionCache
return Neos\Cache\Frontend\PhpFrontend

$newExpressions protected_oe property

protected array $newExpressions
return array