Magento 2 brings a slew of changes to the table for an experienced Magento 1 programmer. While you can still see bits and pieces of Magento 1 (EAV, areas, blocks, etc.), the new Magento 2 core team has spent the last few years
astorm
This week's article is the second in a series discussing Magento 2's object system. Last time we covered the basics of Magento's object manager. This week we're going explain why you'll rarely use Magento's object manager, as well as Magento's implementation of the popular
astorm
Today we're going to explore the "class preference" feature of Magento 2's object-manager/dependency-injection system. While this feature is a direct descendant of Magento 1's class rewrite system, it ends up playing a different role in Magento 2. Where Magento 1's class rewrites were aimed
astorm
In the last article of our series, we covered the "class preference" feature of Magento's object manager. This week we'll cover a similar, but more selective, class replacement system built into Magento 2. While this article should be accesible as a stand-alone tutorial for
astorm
Last time we discussed the argument replacement feature of Magento 2's object manager, and introduced the <type/> tag in di.xml. This week we're going to talk about another feature related to argument replacement -- Virtual Types.
astorm
With their take on an object manager/container and dependency injection, Magento have created a new way for PHP programmers to work. With that new way of working comes a new set of unanticipated challenges. Put another way, new patterns create new problems.
astorm
It's been a long and winding road, but the end is in sight! In this, the penultimate article in our object manager tutorial, we're going to discuss working with instance and non-injectable objects in Magento 2.
astorm
We're finally here. After our long path through the object manager, automatic constructor dependency injection, class preferences, argument replacement, virtual types, proxy objects and code generation, we're finally familiar enough with the object system to discuss the true replacement for Magento 1's class rewrites
astorm