Containers really earn their money when it comes to creating objects from complex dependency hierarchies.
Autowiring solves this problem using the Reflection API to recursively inspect constructor type-hints and instantiate the whole tree of dependencies. That's what we will learn to do now.
0 comments