From eac665924c2c55ed6d5fb46bb3d5e214f4f2490d Mon Sep 17 00:00:00 2001 From: Fabrizio Branca Date: Sun, 9 Dec 2012 05:22:48 -0800 Subject: [PATCH] Classmap needs to be prepended to autoloader stack to have any effect --- app/bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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';