From: Roland Häder Date: Wed, 20 Apr 2011 05:35:14 +0000 (+0000) Subject: Support for application local configuration file 'config-local.php' added X-Git-Url: https://git.mxchange.org/?p=core.git;a=commitdiff_plain;h=8cc44455576c4ee3145803229bf1d80e17d1eb85;hp=81f3737c2379f59e278cacc1ce2c8bf833200cd5 Support for application local configuration file 'config-local.php' added --- diff --git a/inc/config.php b/inc/config.php index d79cfe19..73dc3942 100644 --- a/inc/config.php +++ b/inc/config.php @@ -24,7 +24,7 @@ * along with this program. If not, see . */ -// 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'); diff --git a/inc/selector.php b/inc/selector.php index 3554c3da..00b1dffb 100644 --- a/inc/selector.php +++ b/inc/selector.php @@ -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] ?>