Jump to content

Autoloader : Why ReflectionClass and eval ?


Recommended Posts

Just a simple question for dev. team :


Why in the Autoloader, you use :


$class_infos = new ReflectionClass($classname.'Core');
eval(($class_infos->isAbstract() ? 'abstract ' : '').'class '.$classname.' extends '.$classname.'Core {}');
It's horrible for IDE auto completion, and I think it cause bad performance since the Php optimizer cannot optimize dynamic class !
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...