s/configs/config in Application module
authorEvan Coury <me@evancoury.com>
Tue, 22 Nov 2011 01:23:47 +0000 (18:23 -0700)
committerEvan Coury <me@evancoury.com>
Tue, 22 Nov 2011 01:23:47 +0000 (18:23 -0700)
module/Application/Module.php
module/Application/config/module.config.php [new file with mode: 0644]
module/Application/configs/module.config.php [deleted file]

index 5bd9a70..fc85ebb 100644 (file)
@@ -33,7 +33,7 @@ class Module implements AutoloaderProvider
 
     public function getConfig($env = null)
     {
-        return include __DIR__ . '/configs/module.config.php';
+        return include __DIR__ . '/config/module.config.php';
     }
     
     public function initializeView($e)
diff --git a/module/Application/config/module.config.php b/module/Application/config/module.config.php
new file mode 100644 (file)
index 0000000..9f266c0
--- /dev/null
@@ -0,0 +1,49 @@
+<?php
+return array(
+    'layout' => 'layouts/layout.phtml',
+    'di'     => array(
+        'instance' => array(
+            'alias' => array(
+                'index' => 'Application\Controller\IndexController',
+                'error' => 'Application\Controller\ErrorController',
+                'view'  => 'Zend\View\PhpRenderer',
+            ),
+            'Zend\View\PhpRenderer' => array(
+                'parameters' => array(
+                    'resolver' => 'Zend\View\TemplatePathStack',
+                    'options'  => array(
+                        'script_paths' => array(
+                            'application' => __DIR__ . '/../views',
+                        ),
+                    ),
+                ),
+            ),
+        ),
+    ),
+    'routes' => array(
+        'default' => array(
+            'type'    => 'Zend\Mvc\Router\Http\Segment',
+            'options' => array(
+                'route'    => '/[:controller[/:action]]',
+                'constraints' => array(
+                    'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
+                    'action'     => '[a-zA-Z][a-zA-Z0-9_-]*',
+                ),
+                'defaults' => array(
+                    'controller' => 'index',
+                    'action'     => 'index',
+                ),
+            ),
+        ),
+        'home' => array(
+            'type' => 'Zend\Mvc\Router\Http\Literal',
+            'options' => array(
+                'route'    => '/',
+                'defaults' => array(
+                    'controller' => 'index',
+                    'action'     => 'index',
+                ),
+            ),
+        ),
+    ),
+);
diff --git a/module/Application/configs/module.config.php b/module/Application/configs/module.config.php
deleted file mode 100644 (file)
index 9f266c0..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-<?php
-return array(
-    'layout' => 'layouts/layout.phtml',
-    'di'     => array(
-        'instance' => array(
-            'alias' => array(
-                'index' => 'Application\Controller\IndexController',
-                'error' => 'Application\Controller\ErrorController',
-                'view'  => 'Zend\View\PhpRenderer',
-            ),
-            'Zend\View\PhpRenderer' => array(
-                'parameters' => array(
-                    'resolver' => 'Zend\View\TemplatePathStack',
-                    'options'  => array(
-                        'script_paths' => array(
-                            'application' => __DIR__ . '/../views',
-                        ),
-                    ),
-                ),
-            ),
-        ),
-    ),
-    'routes' => array(
-        'default' => array(
-            'type'    => 'Zend\Mvc\Router\Http\Segment',
-            'options' => array(
-                'route'    => '/[:controller[/:action]]',
-                'constraints' => array(
-                    'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
-                    'action'     => '[a-zA-Z][a-zA-Z0-9_-]*',
-                ),
-                'defaults' => array(
-                    'controller' => 'index',
-                    'action'     => 'index',
-                ),
-            ),
-        ),
-        'home' => array(
-            'type' => 'Zend\Mvc\Router\Http\Literal',
-            'options' => array(
-                'route'    => '/',
-                'defaults' => array(
-                    'controller' => 'index',
-                    'action'     => 'index',
-                ),
-            ),
-        ),
-    ),
-);