Update glob() for autoload config files
authorEvan Coury <me@evancoury.com>
Fri, 30 Mar 2012 17:17:24 +0000 (10:17 -0700)
committerEvan Coury <me@evancoury.com>
Fri, 30 Mar 2012 17:17:24 +0000 (10:17 -0700)
Per a discussion on IRC with @weierophinney:

- requiring ".config" in the filenames is redundant as they live under the
config/ tree
- "local" and "global" should be optional

This leaves us with simply config/autoload/*.php.

public/index.php

index 354a083..e06ff49 100644 (file)
@@ -7,7 +7,7 @@ $appConfig = include 'config/application.config.php';
 
 $listenerOptions  = new Zend\Module\Listener\ListenerOptions($appConfig['module_listener_options']);
 $defaultListeners = new Zend\Module\Listener\DefaultListenerAggregate($listenerOptions);
-$defaultListeners->getConfigListener()->addConfigGlobPath("config/autoload/{,*.}{global,local}.config.php");
+$defaultListeners->getConfigListener()->addConfigGlobPath("config/autoload/*.php");
     
 
 $moduleManager = new Zend\Module\Manager($appConfig['modules']);