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:
ba938de
)
Organize lines in index.php a bit better
author
Evan Coury
<me@evancoury.com>
Fri, 9 Dec 2011 20:20:25 +0000
(13:20 -0700)
committer
Evan Coury
<me@evancoury.com>
Fri, 9 Dec 2011 20:20:25 +0000
(13:20 -0700)
public/index.php
patch
|
blob
|
history
diff --git
a/public/index.php
b/public/index.php
index
b8dc353
..
8c1df71
100644
(file)
--- a/
public/index.php
+++ b/
public/index.php
@@
-5,11
+5,11
@@
Zend\Loader\AutoloaderFactory::factory(array('Zend\Loader\StandardAutoloader' =>
$appConfig = include 'config/application.config.php';
$appConfig = include 'config/application.config.php';
-$moduleManager = new Zend\Module\Manager($appConfig['modules']);
$listenerOptions = new Zend\Module\Listener\ListenerOptions($appConfig['module_listener_options']);
$defaultListeners = new Zend\Module\Listener\DefaultListenerAggregate($listenerOptions);
$listenerOptions = new Zend\Module\Listener\ListenerOptions($appConfig['module_listener_options']);
$defaultListeners = new Zend\Module\Listener\DefaultListenerAggregate($listenerOptions);
-
$defaultListeners->getConfigListener()->addConfigGlobPath('config/autoload/*.config.php');
$defaultListeners->getConfigListener()->addConfigGlobPath('config/autoload/*.config.php');
+
+$moduleManager = new Zend\Module\Manager($appConfig['modules']);
$moduleManager->events()->attachAggregate($defaultListeners);
$moduleManager->loadModules();
$moduleManager->events()->attachAggregate($defaultListeners);
$moduleManager->loadModules();