Education Station:
Dependency Injection, Part Two

By Chris Tankersley

Last month, I talked about the basic idea of what dependency injection is and its importance. Now that we’re more familiar with it, we’ll look at examples of using dependency injection for managing object coupling, moving object creation externally, and keeping your classes concise.

This article was originally published in the December 2019 issue of php[architect] magazine. To read the complete article please subscribe or purchase the complete issue.

Related Articles

Leave a comment

Use the form below to leave a comment: