Subscribe to PHP Freaks RSS

OOD: Injectables vs.Newables

syndicated from planet-php.net on October 24, 2017

Many projects I join - even those that claim to already do dependency injection - suffer from issues that result from mixing injectable and newable classes. Keeping these two appart seems to be challenging for many developers so that I try to give them a handy guide with Do's and Dont's in this blog post.