RuntimeExpressionEvaluator
class RuntimeExpressionEvaluator (View source)
An evaluator for AOP runtime expressions
We expect that ALL runtime expressions are regenerated during compiletime. This currently does not support adding of expressions. See shutdownObject()
Properties
protected FrontendInterface | $runtimeExpressionsCache | ||
protected ObjectManagerInterface | $objectManager | ||
protected array | $runtimeExpressions | Currently existing runtime expressions loaded from cache. |
Methods
This object is created very early and is part of the excluded "Neos\Flow\Aop" namespace so we can't rely on AOP for the property injection.
Evaluate an expression with the given JoinPoint
Add expression to the evaluator
No description
Flush all runtime expressions
Details
void
injectObjectManager(ObjectManagerInterface $objectManager)
This object is created very early and is part of the excluded "Neos\Flow\Aop" namespace so we can't rely on AOP for the property injection.
mixed
evaluate(string $privilegeIdentifier, JoinPointInterface $joinPoint)
Evaluate an expression with the given JoinPoint
void
addExpression(string $privilegeIdentifier, string $expression)
Add expression to the evaluator
protected string
generateExpressionFunctionName(string $privilegeIdentifier)
No description
void
flush()
Flush all runtime expressions