public registerAspect ( Go\Aop\Aspect $aspect ) | ||
$aspect | Go\Aop\Aspect | Instance of concrete aspect |
public function registerAspect(Aop\Aspect $aspect);
/** * Configures an AspectContainer with advisors, aspects and pointcuts * * @param AspectContainer $container * * @return void */ protected function configureAop(AspectContainer $container) { $reader = $container->get('aspect.annotation.reader'); $container->registerAspect(new InvariantCheckerAspect($reader)); $container->registerAspect(new PostconditionCheckerAspect($reader)); $container->registerAspect(new PreconditionCheckerAspect($reader)); }