In Magento 2, the base
Varien_Object class no longer has a custom, internal
_construct method. Blocks, Controllers, Models, Resource Models, and Collections still have an internal
_construct, but that’s because the core team defined
_construct methods on the various abstract base classes for those objects.
$ ack '->_construct' Block/Abstract.php 160: $this->_construct(); Controller/Varien/Action.php 146: $this->_construct(); Model/Abstract.php 147: $this->_construct(); Model/Resource/Abstract.php 49: $this->_construct(); Model/Resource/Db/Collection/Abstract.php 133: $this->_construct();
If you’ve created any custom classes with a
_construct method that extends from the base
Varient_Object class (or one of the many Magento 1 classes that extends from
Varient_Object), you’ll need to do a little refactoring for Magento 2.