Is there a manner in which to catch requests to a class which does not exist.
I’m looking for something exactly like __call() and __static(), but for classes as opposed to methods in a class.
I am not talking about autoloading. I need to be able to interrupt the request and reroute it.
Ideas?
I am not aware of any way of intercepting
without extremely resource-draining things like Reflection or parsing the script files before executing them.
As far as I can see, autoloading is the closest you’ll get here.
If you need to do this, you may have to build a custom factory function
and do your intercepting there.