Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
ISSUE, Calling a exteded function from parent class, doesn't work. #131
Hi, If I have a class
And I extend this class
And I have defined on my aspect class:
And I execute a Example instance.
I doesn't work, the aspect class is not matching the class Example->*.
The unique way to do this works, was adding a method calling the parent class in Example class, so:
But it really doesn't a solution, because the idea of extending classes is do not repeat code.
Yeap, this issue is one of the known limitation of framework. During the class loading process I don't know information about parent class, because it's not loaded into memory, so I can not override parent method in the child with custom logic. AOP intercepts only concrete methods in the concrete class and can not check methods in extending classes.
However, it will be possible in the future to recursively load classes and interfaces before PHP to build an hierarchy, but I don't want to implement this logic right now, because it can break a lot of things.
It would be more usable your framework, because extensive projects have a lot of extending classes, that is my case,.. I can't use go-aop-php without this capability,..