Reference Information Summary for Explaining Dependency Injection (DI)

Tadashi Shigeoka ·  Thu, November 26, 2020

I’ve compiled reference information for explaining Dependency Injection (DI), so I’ll share it.

Dependency Injection

Background: Want to Explain Dependency Injection (DI)

This article was created to explain “DI and DI containers are like this.”

Understanding Design Pattern Dependency Injection

First, to understand DI as a design pattern, read Even Monkeys Can Understand! Dependency Injection: Dependency Injection - Qiita (猿でも分かる! Dependency Injection: 依存性の注入 - Qiita).

Understanding DI Containers

Once you understand DI, next understand DI containers.

As Expected, Your Dependency Injection is Wrong. — A Day in Serenity (Reloaded) — PHP, FuelPHP, Linux or something (やはりあなた方のDependency Injectionはまちがっている。 — A Day in Serenity (Reloaded) — PHP, FuelPHP, Linux or something)

That’s all from the Gemba on wanting to explain Dependency Injection (DI) with just “Read this article!”