Neos\Flow\Aop\Pointcut\PointcutExpressionParser::parseDesignatorClassAnnotatedWith PHP Method

parseDesignatorClassAnnotatedWith() protected method

Takes a class annotation filter pattern and adds a so configured class annotation filter to the filter composite object.
protected parseDesignatorClassAnnotatedWith ( string $operator, string $annotationPattern, PointcutFilterComposite $pointcutFilterComposite ) : void
$operator string The operator
$annotationPattern string The pattern expression as configuration for the class annotation filter
$pointcutFilterComposite PointcutFilterComposite An instance of the pointcut filter composite. The result (ie. the class annotation filter) will be added to this composite object.
return void
    protected function parseDesignatorClassAnnotatedWith($operator, $annotationPattern, PointcutFilterComposite $pointcutFilterComposite)
    {
        $annotationPropertyConstraints = [];
        $this->parseAnnotationPattern($annotationPattern, $annotationPropertyConstraints);
        $filter = new PointcutClassAnnotatedWithFilter($annotationPattern, $annotationPropertyConstraints);
        $filter->injectReflectionService($this->reflectionService);
        $filter->injectSystemLogger($this->objectManager->get(SystemLoggerInterface::class));
        $pointcutFilterComposite->addFilter($operator, $filter);
    }