X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fselector.php;h=00b1dffbb1303eec8d6c9947743ce2fa49c8017f;hp=1898557928e653b332801a047499dfcb073d0bcc;hb=8cc44455576c4ee3145803229bf1d80e17d1eb85;hpb=2c0148a84570f1a8343fa6b98a279e903b3e4fa2 diff --git a/inc/selector.php b/inc/selector.php index 18985579..00b1dffb 100644 --- a/inc/selector.php +++ b/inc/selector.php @@ -4,9 +4,11 @@ * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.ship-simu.org + * @deprecated + * @todo We should minimize these includes * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -29,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.) @@ -49,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'; @@ -69,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] ?>