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

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

string
generateExpressionFunctionName(string $privilegeIdentifier)

No description

void
flush()

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.

Parameters

ObjectManagerInterface $objectManager

Return Value

void

mixed evaluate(string $privilegeIdentifier, JoinPointInterface $joinPoint)

Evaluate an expression with the given JoinPoint

Parameters

string $privilegeIdentifier

MD5 hash that identifies a privilege

JoinPointInterface $joinPoint

Return Value

mixed

Exceptions

Exception

void addExpression(string $privilegeIdentifier, string $expression)

Add expression to the evaluator

Parameters

string $privilegeIdentifier

MD5 hash that identifies a privilege

string $expression

Return Value

void

protected string generateExpressionFunctionName(string $privilegeIdentifier)

No description

Parameters

string $privilegeIdentifier

MD5 hash that identifies a privilege

Return Value

string

void flush()

Flush all runtime expressions

Return Value

void