This is a tough question to ask as I have alot of code involved...probably part of the problem. Really complicated to try to post examples. But, perhaps, somebody may recognize a pattern here and have a solution...
I have a hooks system implemented that works perfectly. Except, if I use it to extend a class I lose scope and I'm unable to interact with variables (for instance).
I am using nested functions - they work - but not when I'm extending. I can even interact with the class methods that has been extended perfectly (even using $this) but using my singleton in this situation renders it null.
Anyways, what about extending is there that could cause me to lose this scope?
Edit: I took out the nested functions that were calling the extend and am now doing it directly and it still doesn't work. ;(