cleaned up paths.

This commit is contained in:
Taylor Otwell
2012-01-28 14:55:08 -06:00
parent 409e908964
commit 97fcea1e51
29 changed files with 86 additions and 81 deletions

View File

@@ -17,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 $GLOBALS['SYS_PATH'].'bundle'.EXT;
require $GLOBALS['SYS_PATH'].'config'.EXT;
require $GLOBALS['SYS_PATH'].'helpers'.EXT;
require $GLOBALS['SYS_PATH'].'autoloader'.EXT;
require path('sys').'bundle'.EXT;
require path('sys').'config'.EXT;
require path('sys').'helpers'.EXT;
require path('sys').'autoloader'.EXT;
/**
* Register the Autoloader's "load" method on the auto-loader stack.
@@ -42,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 $GLOBALS['BUNDLE_PATH'].'bundles'.EXT;
$bundles = require path('bundle').'bundles'.EXT;
foreach ($bundles as $bundle => $value)
{