2012-01-17 15:28:19 -06:00
|
|
|
<?php
|
2012-01-17 16:10:16 -06:00
|
|
|
/**
|
|
|
|
* Laravel - A PHP Framework For Web Artisans
|
|
|
|
*
|
|
|
|
* @package Laravel
|
2012-06-03 19:54:02 -05:00
|
|
|
* @version 3.2.2
|
2012-01-17 16:10:16 -06:00
|
|
|
* @author Taylor Otwell <taylorotwell@gmail.com>
|
|
|
|
* @link http://laravel.com
|
|
|
|
*/
|
2012-01-17 15:28:19 -06:00
|
|
|
|
2012-04-12 22:54:50 -05:00
|
|
|
/*
|
|
|
|
|----------------------------------------------------------------
|
|
|
|
| Application Environemtns
|
|
|
|
|----------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Laravel takes a dead simple approach to environments, and we
|
|
|
|
| think you'll love it. Just specify which URLs belongs to a
|
|
|
|
| given environment, and when you access your application
|
|
|
|
| from a URL matching that pattern, we'll be sure to
|
|
|
|
| merge in that environment's configuration files.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
$environments = array(
|
|
|
|
|
2012-04-13 13:02:20 -05:00
|
|
|
'local' => array('http://localhost*', '*.dev'),
|
2012-04-12 22:54:50 -05:00
|
|
|
|
|
|
|
);
|
|
|
|
|
2012-01-17 15:28:19 -06:00
|
|
|
// --------------------------------------------------------------
|
|
|
|
// The path to the application directory.
|
|
|
|
// --------------------------------------------------------------
|
2012-01-28 14:55:08 -06:00
|
|
|
$paths['app'] = 'application';
|
2012-01-17 15:28:19 -06:00
|
|
|
|
2012-01-18 09:33:41 -06:00
|
|
|
// --------------------------------------------------------------
|
|
|
|
// The path to the Laravel directory.
|
|
|
|
// --------------------------------------------------------------
|
2012-01-28 14:55:08 -06:00
|
|
|
$paths['sys'] = 'laravel';
|
2012-01-18 09:33:41 -06:00
|
|
|
|
2012-01-17 15:28:19 -06:00
|
|
|
// --------------------------------------------------------------
|
|
|
|
// The path to the bundles directory.
|
|
|
|
// --------------------------------------------------------------
|
2012-01-28 14:55:08 -06:00
|
|
|
$paths['bundle'] = 'bundles';
|
2012-01-17 15:28:19 -06:00
|
|
|
|
|
|
|
// --------------------------------------------------------------
|
|
|
|
// The path to the storage directory.
|
|
|
|
// --------------------------------------------------------------
|
2012-01-28 14:55:08 -06:00
|
|
|
$paths['storage'] = 'storage';
|
2012-01-17 15:28:19 -06:00
|
|
|
|
|
|
|
// --------------------------------------------------------------
|
|
|
|
// The path to the public directory.
|
|
|
|
// --------------------------------------------------------------
|
2012-04-12 22:33:45 -05:00
|
|
|
$paths['public'] = 'public';
|
2012-01-17 15:28:19 -06:00
|
|
|
|
2012-04-12 22:46:49 -05:00
|
|
|
// *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
|
|
|
|
// END OF USER CONFIGURATION. HERE BE DRAGONS!
|
|
|
|
// *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
|
|
|
|
|
2012-04-12 22:35:18 -05:00
|
|
|
// --------------------------------------------------------------
|
|
|
|
// 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;
|
|
|
|
|
2012-01-17 15:28:19 -06:00
|
|
|
// --------------------------------------------------------------
|
|
|
|
// Define each constant if it hasn't been defined.
|
|
|
|
// --------------------------------------------------------------
|
|
|
|
foreach ($paths as $name => $path)
|
|
|
|
{
|
2012-02-25 14:54:34 -06:00
|
|
|
if ( ! isset($GLOBALS['laravel_paths'][$name]))
|
|
|
|
{
|
|
|
|
$GLOBALS['laravel_paths'][$name] = realpath($path).DS;
|
|
|
|
}
|
2012-01-28 14:55:08 -06:00
|
|
|
}
|
|
|
|
|
2012-02-04 21:30:52 +00:00
|
|
|
/**
|
|
|
|
* A global path helper function.
|
|
|
|
*
|
|
|
|
* <code>
|
|
|
|
* $storage = path('storage');
|
|
|
|
* </code>
|
|
|
|
*
|
|
|
|
* @param string $path
|
|
|
|
* @return string
|
|
|
|
*/
|
2012-01-28 14:55:08 -06:00
|
|
|
function path($path)
|
|
|
|
{
|
|
|
|
return $GLOBALS['laravel_paths'][$path];
|
|
|
|
}
|
|
|
|
|
2012-02-04 21:30:52 +00:00
|
|
|
/**
|
|
|
|
* A global path setter function.
|
|
|
|
*
|
|
|
|
* @param string $path
|
|
|
|
* @param string $value
|
|
|
|
* @return void
|
|
|
|
*/
|
2012-01-28 14:55:08 -06:00
|
|
|
function set_path($path, $value)
|
|
|
|
{
|
|
|
|
$GLOBALS['laravel_paths'][$path] = $value;
|
2012-01-17 15:28:19 -06:00
|
|
|
}
|