Organize lines in index.php a bit better
authorEvan Coury <me@evancoury.com>
Fri, 9 Dec 2011 20:20:25 +0000 (13:20 -0700)
committerEvan Coury <me@evancoury.com>
Fri, 9 Dec 2011 20:20:25 +0000 (13:20 -0700)
public/index.php

index b8dc353..8c1df71 100644 (file)
@@ -5,11 +5,11 @@ Zend\Loader\AutoloaderFactory::factory(array('Zend\Loader\StandardAutoloader' =>
 
 $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);
-
 $defaultListeners->getConfigListener()->addConfigGlobPath('config/autoload/*.config.php');
+
+$moduleManager = new Zend\Module\Manager($appConfig['modules']);
 $moduleManager->events()->attachAggregate($defaultListeners);
 $moduleManager->loadModules();