IoC containers beyond constructor injection
summary
Shows that an IoC container does more than constructor injection by demonstrating concrete tactics: use a reflection container to auto-resolve constructors, alias interfaces to concrete classes per PSR 11, and register shared singletons for things like entity managers. Builds a storage stack with FTP, cache and log decorators to prove composition and decoupling, uses contextual binding to give different controllers differently configured filesystem instances, performs method injection/inflectors for post-construction setup, and breaks circular deps with a soft dependency callable.
AI-written summary · about
chapters (7)
- 0:00Start
- 0:48WHAT IS IOC?
- 16:35CONSTRUCTOR INJECTION
- 18:58REGISTRATION - BINDING
- 24:18REGISTRATION - CONTEXTUAL BINDING
- 33:05CALLING THE CONTAINER
- 38:00BONUS - CIRCULAR DEPENDENCIES
related talks
46mSlaying Sacred Cows: Deconstructing Dependency Injection
49mReaders vs Constructors: Dependency Injection showdown
32mLet's Build a Dependency Injection Framework
01h 29mDependency Injection in C++ - A Practical Guide
31mBuild your own Dependency Injection framework!
56mDI Frameworks – some hidden pearls
30mThe Imposter’s Guide To Dependency Injection
37mAdvanced multi-platform dependency injection
