better organize paths file.

This commit is contained in:
Taylor Otwell
2012-04-12 22:35:18 -05:00
parent 2b88c78896
commit 99e634d7a4

View File

@@ -8,24 +8,6 @@
* @link http://laravel.com
*/
// --------------------------------------------------------------
// Change to the current working directory.
// --------------------------------------------------------------
chdir(__DIR__);
// --------------------------------------------------------------
// Define the directory separator for the environment.
// --------------------------------------------------------------
if ( ! defined('DS'))
{
define('DS', DIRECTORY_SEPARATOR);
}
// --------------------------------------------------------------
// Define the path to the base directory.
// --------------------------------------------------------------
$GLOBALS['laravel_paths']['base'] = __DIR__.DS;
// --------------------------------------------------------------
// The path to the application directory.
// --------------------------------------------------------------
@@ -51,6 +33,24 @@ $paths['storage'] = 'storage';
// --------------------------------------------------------------
$paths['public'] = 'public';
// --------------------------------------------------------------
// Change to the current working directory.
// --------------------------------------------------------------
chdir(__DIR__);
// --------------------------------------------------------------
// Define the directory separator for the environment.
// --------------------------------------------------------------
if ( ! defined('DS'))
{
define('DS', DIRECTORY_SEPARATOR);
}
// --------------------------------------------------------------
// Define the path to the base directory.
// --------------------------------------------------------------
$GLOBALS['laravel_paths']['base'] = __DIR__.DS;
// --------------------------------------------------------------
// Define each constant if it hasn't been defined.
// --------------------------------------------------------------