Support for application local configuration file 'config-local.php' added
authorRoland Häder <roland@mxchange.org>
Wed, 20 Apr 2011 05:35:14 +0000 (05:35 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 20 Apr 2011 05:35:14 +0000 (05:35 +0000)
inc/config.php
inc/selector.php

index d79cfe1..73dc394 100644 (file)
@@ -24,7 +24,7 @@
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 
-// Load the class from inc/config direktory
+// Load very basic classes, required to bootstrap
 require(ApplicationEntryPoint::detectCorePath() . '/inc/classes/interfaces/class_FrameworkInterface.php');
 require(ApplicationEntryPoint::detectCorePath() . '/inc/classes/interfaces/registry/class_Registerable.php');
 require(ApplicationEntryPoint::detectCorePath() . '/inc/config/class_FrameworkConfiguration.php');
index 3554c3d..00b1dff 100644 (file)
@@ -31,6 +31,7 @@ $configAppIncludes = array(
        'exceptions',   // The application's own exception handler
        'loader',               // The application's class loader
        'config',               // The application's own configuration
+       'config-local', // Local configuration file (optional)
        'data',                 // Application data
        'init',                 // The application initializer
        'starter',              // The application starter (calls entryPoint(), etc.)
@@ -51,7 +52,7 @@ foreach ($configAppIncludes as $appInc) {
        if (($appInc == 'starter') && (defined('TEST'))) {
                // Skip it here
                continue;
-       }
+       } // END - if
 
        // Generate a FQFN for the helper class
        $appFqFn = $basePathFile . '/' . $appInc . '.php';
@@ -71,7 +72,10 @@ foreach ($configAppIncludes as $appInc) {
 }
 
 // Remove variables from namespace, which we don't need
-unset($appInc, $configAppIncludes, $appFqFn, $basePathFile);
+unset($appInc);
+unset($configAppIncludes);
+unset($appFqFn);
+unset($basePathFile);
 
 // [EOF]
 ?>