wpdi – A WordPress-Native DI Container
TL;DR: Most DI containers let you inject anything – objects, strings, closures – which requires manual wiring and makes it easy to accidentally turn the container into a caching or configuration layer. wpdi enforces a single constraint: everything is a typed object. That unlocks zero-config autowiring, IDE-navigable dependencies, and static analysis of the full dependency … Read more