Re: [Reflection] Improve logic of ReflectionMethod->invokeArgs() for static methods
Alexander,
So, I take the original class, rename it and then create a decorator
> class instead of original class with overridden dynamic and static
> methods. Method in the decorator should make some specific logic and
> then just invokes the original static method with Reflection, but the
> scope should be also correct.
>
I have to ask: *why*? Why are you using static methods like that? It seems
to me that you're trying to use LSB to introduce a form of polymorphism
where it's not really designed for it... Why not just use instances in this
case (which are supported for your use-case)...?
Anthony
Thread (8 messages)