From: Rob Allen Date: Wed, 20 Jun 2012 18:40:19 +0000 (+0100) Subject: ensure we register the Zend namespace for the StandardAutoloader X-Git-Url: http://git.inspyration.org/?p=zf2.biz%2Fgalerie.git;a=commitdiff_plain;h=887dd7e6fde15be65b93e6b7e224246cabe29c1c ensure we register the Zend namespace for the StandardAutoloader --- diff --git a/public/index.php b/public/index.php index 5d7a3d7..f347d34 100644 --- a/public/index.php +++ b/public/index.php @@ -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 + ) + )); } }