beberlei / yadif

Yet Another (PHP) Dependency Injection Framework
Other
37 stars 1 forks source link

Move class_exists() test from addComponent() to getComponent() #1

Closed beberlei closed 14 years ago

beberlei commented 15 years ago

For reasons of Lazy-Loading and non breaking of complete configurations when an invalid, but unneeded class is set it should be necessary to check class_exists() in getComponent() rather than in addComponent().

This has also already been implemented in a fork of this project.