Remove references to application environment.
authorEvan Coury <me@evancoury.com>
Wed, 7 Dec 2011 21:22:38 +0000 (14:22 -0700)
committerEvan Coury <me@evancoury.com>
Wed, 7 Dec 2011 21:22:38 +0000 (14:22 -0700)
- Updated ZF2 submodule
- Added local dist config file, gitignored non-dist counterpart
- Added default global config file
- Some comments explaining the purpose of the files

config/application.config.php
config/autoload/.gitignore [new file with mode: 0644]
config/autoload/global.config.php [new file with mode: 0644]
config/autoload/local.config.php.dist [new file with mode: 0644]
module/Application/Module.php
vendor/ZendFramework

index 273ebbe..ece654c 100644 (file)
@@ -8,8 +8,7 @@ return array(
         'Application',
     ),
     'module_listener_options' => array( 
-        'config_cache_enabled'    => false,
-        'cache_dir'               => realpath(dirname(__DIR__) . '/data/cache'),
-        'application_environment' => getenv('APPLICATION_ENV'),
+        'config_cache_enabled' => false,
+        'cache_dir'            => realpath(dirname(__DIR__) . '/data/cache'),
     ),
 );
diff --git a/config/autoload/.gitignore b/config/autoload/.gitignore
new file mode 100644 (file)
index 0000000..a879374
--- /dev/null
@@ -0,0 +1 @@
+local.config.php
diff --git a/config/autoload/global.config.php b/config/autoload/global.config.php
new file mode 100644 (file)
index 0000000..b03c0c4
--- /dev/null
@@ -0,0 +1,16 @@
+<?php
+/**
+ * Global Configuration Override
+ *
+ * You can use this file for overridding configuration values from modules, etc.  
+ * You would place values in here that are agnostic to the environment and not 
+ * sensitive to security. 
+ *
+ * @NOTE: In practice, this file will typically be INCLUDED in your source 
+ * control, so do not include passwords or other sensitive information in this 
+ * file.
+ */
+
+return array(
+    // ...
+);
diff --git a/config/autoload/local.config.php.dist b/config/autoload/local.config.php.dist
new file mode 100644 (file)
index 0000000..7862eba
--- /dev/null
@@ -0,0 +1,16 @@
+<?php
+/**
+ * Local Configuration Override
+ *
+ * This configuration override file is for overriding environment-specific and
+ * security-sensitive configuration information. Copy this file without the
+ * .dist extension at the end and populate values as needed.
+ *
+ * @NOTE: This file is ignored from Git by default with the .gitignore included
+ * in ZendSkeletonApplication. This is a good practice, as it prevents sensitive
+ * credentials from accidentally being comitted into version control.
+ */
+
+return array(
+    // ...
+);
index fc85ebb..6708792 100644 (file)
@@ -31,7 +31,7 @@ class Module implements AutoloaderProvider
         );
     }
 
-    public function getConfig($env = null)
+    public function getConfig()
     {
         return include __DIR__ . '/config/module.config.php';
     }
index a2777d1..853f21d 160000 (submodule)
@@ -1 +1 @@
-Subproject commit a2777d1bd615403635579804e1cb7a086ef47f88
+Subproject commit 853f21da7cc04d7832107e08accc88533de6ad54