7 days of WordPress plugins, themes & templates - for free! Unlimited asset downloads! Start 7-Day Free Trial
FREELessons: 17Length: 2.4 hours

Next lesson playing in 5 seconds

  • 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.