PHP Class Neos\Flow\Aop\Pointcut\PointcutClassAnnotatedWithFilter

Inheritance: implements Neos\Flow\Aop\Pointcut\PointcutFilterInterface
Afficher le fichier Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$annotation A regular expression to match annotations
$annotationValueConstraints array
$reflectionService Neos\Flow\Reflection\ReflectionService
$systemLogger Neos\Flow\Log\SystemLoggerInterface

Méthodes publiques

Méthode Description
__construct ( string $annotation, array $annotationValueConstraints = [] ) The constructor - initializes the class annotation filter with the expected annotation class
getRuntimeEvaluationsDefinition ( ) : array Returns runtime evaluations for the pointcut.
hasRuntimeEvaluationsDefinition ( ) : boolean Returns TRUE if this filter holds runtime evaluations for a previously matched pointcut
injectReflectionService ( ReflectionService $reflectionService ) : void Injects the reflection service
injectSystemLogger ( Neos\Flow\Log\SystemLoggerInterface $systemLogger ) : void
matches ( string $className, string $methodName, string $methodDeclaringClassName, mixed $pointcutQueryIdentifier ) : boolean Checks if the specified class matches with the class tag filter pattern
reduceTargetClassNames ( ClassNameIndex $classNameIndex ) : ClassNameIndex This method is used to optimize the matching process.

Method Details

__construct() public méthode

The constructor - initializes the class annotation filter with the expected annotation class
public __construct ( string $annotation, array $annotationValueConstraints = [] )
$annotation string An annotation class (for example "@Neos\Flow\Annotations\Aspect") which defines which class annotations should match
$annotationValueConstraints array

getRuntimeEvaluationsDefinition() public méthode

Returns runtime evaluations for the pointcut.
public getRuntimeEvaluationsDefinition ( ) : array
Résultat array Runtime evaluations

hasRuntimeEvaluationsDefinition() public méthode

Returns TRUE if this filter holds runtime evaluations for a previously matched pointcut
public hasRuntimeEvaluationsDefinition ( ) : boolean
Résultat boolean TRUE if this filter has runtime evaluations

injectReflectionService() public méthode

Injects the reflection service
public injectReflectionService ( ReflectionService $reflectionService ) : void
$reflectionService Neos\Flow\Reflection\ReflectionService The reflection service
Résultat void

injectSystemLogger() public méthode

public injectSystemLogger ( Neos\Flow\Log\SystemLoggerInterface $systemLogger ) : void
$systemLogger Neos\Flow\Log\SystemLoggerInterface
Résultat void

matches() public méthode

Checks if the specified class matches with the class tag filter pattern
public matches ( string $className, string $methodName, string $methodDeclaringClassName, mixed $pointcutQueryIdentifier ) : boolean
$className string Name of the class to check against
$methodName string Name of the method - not used here
$methodDeclaringClassName string Name of the class the method was originally declared in - not used here
$pointcutQueryIdentifier mixed Some identifier for this query - must at least differ from a previous identifier. Used for circular reference detection.
Résultat boolean TRUE if the class matches, otherwise FALSE

reduceTargetClassNames() public méthode

This method is used to optimize the matching process.
public reduceTargetClassNames ( ClassNameIndex $classNameIndex ) : ClassNameIndex
$classNameIndex Neos\Flow\Aop\Builder\ClassNameIndex
Résultat Neos\Flow\Aop\Builder\ClassNameIndex

Property Details

$annotation protected_oe property

A regular expression to match annotations
protected $annotation

$annotationValueConstraints protected_oe property

protected array $annotationValueConstraints
Résultat array

$reflectionService protected_oe property

protected ReflectionService,Neos\Flow\Reflection $reflectionService
Résultat Neos\Flow\Reflection\ReflectionService

$systemLogger protected_oe property

protected SystemLoggerInterface,Neos\Flow\Log $systemLogger
Résultat Neos\Flow\Log\SystemLoggerInterface