JMSAopBundle icon indicating copy to clipboard operation
JMSAopBundle copied to clipboard

Inherited method support

Open lyzkov opened this issue 12 years ago • 0 comments

In my current projct I defined service which use methods inherited from another abstract class.

class MyManager extends AbstractManager
{
}

abstract class AbstractManager
{
    /** @MyAnnotation */
    public function custom()
    {
    }
}

For that service I wrote my Pointcut and Interceptor that use annotation reader (based on example from readme). The problem is that when I call MyManager::custom() intercept() method is not called. It is strange because my Pointcut allows Abstractmanager::custom() despite it is method of not instantiable class (I checked that echoing method name before return). However the inherited MyManager::custom() is not found by Pointcut.

I'm not sure if it is problem of annotation reader or maybe it is something wrong in JMSAop?

lyzkov avatar Dec 14 '12 18:12 lyzkov