PHP Class Neos\Flow\Aop\Pointcut\RuntimeExpressionEvaluator

We expect that ALL runtime expressions are regenerated during compiletime. This currently does not support adding of expressions. See shutdownObject()
Datei anzeigen Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$newExpressions array Newly added expressions.
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$runtimeExpressions array Currently existing runtime expressions loaded from cache.
$runtimeExpressionsCache Neos\Cache\Frontend\PhpFrontend

Public Methods

Method Description
addExpression ( string $privilegeIdentifier, string $expression ) : string Add expression to the evaluator
evaluate ( string $privilegeIdentifier, Neos\Flow\Aop\JoinPointInterface $joinPoint ) : mixed Evaluate an expression with the given JoinPoint
flush ( ) : void Flush all runtime expressions
injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void This object is created very early and is part of the blacklisted "Neos\Flow\Aop" namespace so we can't rely on AOP for the property injection.
saveRuntimeExpressions ( ) : void Shutdown the Evaluator and save created expressions overwriting any existing expressions

Protected Methods

Method Description
generateExpressionFunctionName ( string $privilegeIdentifier ) : string

Method Details

addExpression() public method

Add expression to the evaluator
public addExpression ( string $privilegeIdentifier, string $expression ) : string
$privilegeIdentifier string MD5 hash that identifies a privilege
$expression string
return string

evaluate() public method

Evaluate an expression with the given JoinPoint
public evaluate ( string $privilegeIdentifier, Neos\Flow\Aop\JoinPointInterface $joinPoint ) : mixed
$privilegeIdentifier string MD5 hash that identifies a privilege
$joinPoint Neos\Flow\Aop\JoinPointInterface
return mixed

flush() public method

Flush all runtime expressions
public flush ( ) : void
return void

generateExpressionFunctionName() protected method

protected generateExpressionFunctionName ( string $privilegeIdentifier ) : string
$privilegeIdentifier string MD5 hash that identifies a privilege
return string

injectObjectManager() public method

This object is created very early and is part of the blacklisted "Neos\Flow\Aop" namespace so we can't rely on AOP for the property injection.
public injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
return void

saveRuntimeExpressions() public method

Shutdown the Evaluator and save created expressions overwriting any existing expressions
public saveRuntimeExpressions ( ) : void
return void

Property Details

$newExpressions protected_oe property

Newly added expressions.
protected array $newExpressions
return array

$objectManager protected_oe property

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
return Neos\Flow\ObjectManagement\ObjectManagerInterface

$runtimeExpressions protected_oe property

Currently existing runtime expressions loaded from cache.
protected array $runtimeExpressions
return array

$runtimeExpressionsCache protected_oe property

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