diff --git a/app/bootstrap.php b/app/bootstrap.php index 315f3cba0db6b..cff388e40a25a 100644 --- a/app/bootstrap.php +++ b/app/bootstrap.php @@ -88,7 +88,7 @@ require_once BP . '/lib/Magento/Autoload/ClassMap.php'; $classMap = new Magento_Autoload_ClassMap(BP); $classMap->addMap(unserialize(file_get_contents($classMapPath))); - spl_autoload_register(array($classMap, 'load')); + spl_autoload_register(array($classMap, 'load'), true, true); } $definitionsFile = BP . DS . 'var/di/definitions.php';