Dynamically instantiate class in pure library?
Posted: January 29th, 2013, 8:48 pm
Hello,
I have some PHP that I'm trying to convert to a pure library for performance reasons (our project uses autoload). Some spots in our code dynamically instantiate classes based on class name. This doesn't seem to be working when compiled as a pure library. It does work when running a multi-script assembly with auto-load. The class is namespaced.
Is this intended behavior?
Thanks,
- Hans
I have some PHP that I'm trying to convert to a pure library for performance reasons (our project uses autoload). Some spots in our code dynamically instantiate classes based on class name. This doesn't seem to be working when compiled as a pure library. It does work when running a multi-script assembly with auto-load. The class is namespaced.
Is this intended behavior?
Thanks,
- Hans