converted path constants to $GLOBALS.

This commit is contained in:
Taylor Otwell
2012-01-27 16:17:43 -06:00
parent 09d4b74cf1
commit f44c565ee4
28 changed files with 80 additions and 83 deletions

View File

@@ -9,9 +9,6 @@
define('EXT', '.php');
define('CRLF', "\r\n");
define('BLADE_EXT', '.blade.php');
define('CACHE_PATH', STORAGE_PATH.'cache'.DS);
define('DATABASE_PATH', STORAGE_PATH.'database'.DS);
define('SESSION_PATH', STORAGE_PATH.'sessions'.DS);
define('DEFAULT_BUNDLE', 'application');
define('MB_STRING', (int) function_exists('mb_get_info'));
@@ -20,10 +17,10 @@ define('MB_STRING', (int) function_exists('mb_get_info'));
* These are typically classes that the auto-loader relies upon to
* load classes, such as the array and configuration classes.
*/
require SYS_PATH.'bundle'.EXT;
require SYS_PATH.'config'.EXT;
require SYS_PATH.'helpers'.EXT;
require SYS_PATH.'autoloader'.EXT;
require $GLOBALS['SYS_PATH'].'bundle'.EXT;
require $GLOBALS['SYS_PATH'].'config'.EXT;
require $GLOBALS['SYS_PATH'].'helpers'.EXT;
require $GLOBALS['SYS_PATH'].'autoloader'.EXT;
/**
* Register the Autoloader's "load" method on the auto-loader stack.
@@ -45,7 +42,7 @@ Autoloader::$aliases = Config::get('application.aliases');
* file within the bundles directory. This informs the framework
* where the bundle lives and which URIs it responds to.
*/
$bundles = require BUNDLE_PATH.'bundles'.EXT;
$bundles = require $GLOBALS['BUNDLE_PATH'].'bundles'.EXT;
foreach ($bundles as $bundle => $value)
{