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

parseDesignatorMethodAnnotatedWith() protected method

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