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()
Afficher le fichier Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
generateExpressionFunctionName ( string $privilegeIdentifier ) : string

Method Details

addExpression() public méthode

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

evaluate() public méthode

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
Résultat mixed

flush() public méthode

Flush all runtime expressions
public flush ( ) : void
Résultat void

generateExpressionFunctionName() protected méthode

protected generateExpressionFunctionName ( string $privilegeIdentifier ) : string
$privilegeIdentifier string MD5 hash that identifies a privilege
Résultat string

injectObjectManager() public méthode

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
Résultat void

saveRuntimeExpressions() public méthode

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

Property Details

$newExpressions protected_oe property

Newly added expressions.
protected array $newExpressions
Résultat array

$objectManager protected_oe property

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
Résultat Neos\Flow\ObjectManagement\ObjectManagerInterface

$runtimeExpressions protected_oe property

Currently existing runtime expressions loaded from cache.
protected array $runtimeExpressions
Résultat array

$runtimeExpressionsCache protected_oe property

protected PhpFrontend,Neos\Cache\Frontend $runtimeExpressionsCache
Résultat Neos\Cache\Frontend\PhpFrontend