projects
/
zf2.biz
/
application_blanche.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3fc897
)
ensure we register the Zend namespace for the StandardAutoloader
author
Rob Allen
<rob@akrabat.com>
Wed, 20 Jun 2012 18:40:19 +0000
(19:40 +0100)
committer
Rob Allen
<rob@akrabat.com>
Wed, 20 Jun 2012 18:40:19 +0000
(19:40 +0100)
public/index.php
patch
|
blob
|
history
diff --git
a/public/index.php
b/public/index.php
index
5d7a3d7
..
f347d34
100644
(file)
--- 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
+ )
+ ));
}
}