From d1ddb54dca0b57a721c0135b1285480c25595630 Mon Sep 17 00:00:00 2001 From: Evan Coury Date: Fri, 30 Mar 2012 10:17:24 -0700 Subject: [PATCH] Update glob() for autoload config files 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/index.php b/public/index.php index 354a083..e06ff49 100644 --- a/public/index.php +++ b/public/index.php @@ -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']); -- 1.7.10.4