Jump to content

Autoloader : Why ReflectionClass and eval ?


Prestadget
 Share

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 !
 
 

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More