Наследование: implements Go\Aop\PointcutAdvisor
 /**
  * {@inheritdoc}
  */
 public function getAdvice()
 {
     $advice = parent::getAdvice();
     if ($this->pointcut->getKind() & PointFilter::KIND_DYNAMIC) {
         $advice = new DynamicInvocationMatcherInterceptor($this->pointcut, $advice);
     }
     return $advice;
 }
Пример #2
0
 /**
  * Create a DefaultPointcutAdvisor, specifying Pointcut and Advice.
  *
  * @param AspectContainer $container Instance of container
  * @param string $pointcutExpression The Pointcut targeting the Advice
  * @param Advice $advice The Advice to run when Pointcut matches
  */
 public function __construct(AspectContainer $container, $pointcutExpression, Advice $advice)
 {
     $this->container = $container;
     $this->pointcutExpression = $pointcutExpression;
     parent::__construct($advice);
 }