Unlimited Plugins, WordPress themes, videos & courses! Unlimited asset downloads! From $16.50/m
by
Lessons:17Length:2.4 hours
Crs 87595
  • Overview
  • Transcript

3.2 Understanding a Factory Pattern in Magento

In the previous lesson we covered a lot of things, and one of the most important notes for this lesson is to understand the autoloader, because it’s just the first half in learning how objects are actually instantiated in Magento using a factory pattern. We never instantiate a class standardly, with a new keyword followed by the full class name, because by doing so, we break one of the most powerful and most important feature in Magento called class rewriting.