Dependency Injection Breaks Encapsulation

Like a monster class with 9000 lines in it?

You have no foot to stand on Tony and every argument you make just puts you deeper in your own quagmire of self-buffoonery, which I clearly see from my own perspective. This discussion isn’t about DI anymore. It is about your incorrect views about DI and how you dance around making the point of a better alternative.

All you have to do is agree, that DI is a proper and helpful design pattern and that modern, well written PHP applications should be modular and testable and those are the main reasons why the DI pattern is good, useful, beneficial, advantageous, etc.

Then go and rewrite your post about DI being evil and reword the title to be “DI is pretty cool, but I choose not to use it like everyone else does!”

Scott

2 Likes