PHP·98 questions

What is Dependency Injection?

Answer
Passing dependencies through constructor/methods.
Instead of creating inside the class.
Simplifies testing.
DI containers automate.
Inversion of control.
Was this answer helpful?

More questions in this topic

Related questions from other topics