O'Reilly logo

Magento 2 Developer's Guide by Branko Ajzele

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

In this chapter, we had a look at the object manager and dependency injection, which are the foundations of Magento object management. We learned the meaning of the type and preference elements of dependency injection and how to use them to manipulate class construct parameters. Though there is much more to be said about dependency injection in Magento, the presented information should suffice and help us with other aspects of Magento.

In the next chapter, we will extend our journey into di.xml via the concept of plugins.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required