ensure we register the Zend namespace for the StandardAutoloader
authorRob Allen <rob@akrabat.com>
Wed, 20 Jun 2012 18:40:19 +0000 (19:40 +0100)
committerRob Allen <rob@akrabat.com>
Wed, 20 Jun 2012 18:40:19 +0000 (19:40 +0100)
public/index.php

index 5d7a3d7..f347d34 100644 (file)
@@ -16,7 +16,11 @@ if ($zf2Path = getenv('ZF2_PATH') ?: (is_dir('vendor/ZF2/library') ? 'vendor/ZF2
         $loader->add('Zend', $zf2Path . '/Zend');
     } else {
         include $zf2Path . '/Zend/Loader/AutoloaderFactory.php';
-        AutoloaderFactory::factory();
+        AutoloaderFactory::factory(array(
+            'Zend\Loader\StandardAutoloader' => array(
+                'autoregister_zf' => true
+            )
+        ));
     }
 }