/** * Adds a setting filter to the pointcut filter composite * * @param string $operator The operator * @param string $configurationPath The path to the settings option, that should be used * @param PointcutFilterComposite $pointcutFilterComposite An instance of the pointcut filter composite. The result (ie. the custom filter) will be added to this composite object. * @return void */ protected function parseDesignatorSetting($operator, $configurationPath, PointcutFilterComposite $pointcutFilterComposite) { $filter = new PointcutSettingFilter($configurationPath); /** @var ConfigurationManager $configurationManager */ $configurationManager = $this->objectManager->get('TYPO3\\Flow\\Configuration\\ConfigurationManager'); $filter->injectConfigurationManager($configurationManager); $pointcutFilterComposite->addFilter($operator, $filter); }
/** * Walks recursively through the method resources tree. * * @param string $operator The operator * @param string $pointcutExpression The pointcut expression (value of the designator) * @param \TYPO3\Flow\Aop\Pointcut\PointcutFilterComposite $pointcutFilterComposite An instance of the pointcut filter composite. The result (ie. the pointcut filter) will be added to this composite object. * @param array &$trace * @return void * @throws \TYPO3\Flow\Aop\Exception\InvalidPointcutExpressionException */ protected function parseDesignatorPointcut($operator, $pointcutExpression, \TYPO3\Flow\Aop\Pointcut\PointcutFilterComposite $pointcutFilterComposite, array &$trace = array()) { if (!isset($this->methodResourcesTree[$pointcutExpression])) { throw new \TYPO3\Flow\Aop\Exception\InvalidPointcutExpressionException('The given resource was not defined: "' . $pointcutExpression . '".', 1222014591); } $pointcutFilterComposite->addFilter($operator, $this->parseMethodResources($this->methodResourcesTree[$pointcutExpression], array(), $trace)); }