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

@@ -13,21 +13,6 @@
// --------------------------------------------------------------
define('DS', DIRECTORY_SEPARATOR);
// --------------------------------------------------------------
// Override the framework paths if testing Laravel.
// --------------------------------------------------------------
foreach ($_SERVER['argv'] as $argument)
{
if (strpos($argument, 'build.xml') !== false)
{
define('APP_PATH', realpath('bundles/laravel-tests/application').DS);
define('BUNDLE_PATH', realpath('bundles/laravel-tests/bundles').DS);
define('STORAGE_PATH', realpath('bundles/laravel-tests/storage').DS);
}
}
// --------------------------------------------------------------
// Set the core Laravel path constants.
// --------------------------------------------------------------
@@ -36,7 +21,7 @@ require 'paths.php';
// --------------------------------------------------------------
// Bootstrap the Laravel core.
// --------------------------------------------------------------
require SYS_PATH.'core.php';
require $GLOBALS['SYS_PATH'].'core.php';
// --------------------------------------------------------------
// Start the default bundle.