From 887dd7e6fde15be65b93e6b7e224246cabe29c1c Mon Sep 17 00:00:00 2001 From: Rob Allen Date: Wed, 20 Jun 2012 19:40:19 +0100 Subject: [PATCH] ensure we register the Zend namespace for the StandardAutoloader --- public/index.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 + ) + )); } } -- 1.7.10.4