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

@@ -1,4 +1,4 @@
<?php namespace Laravel; isset($GLOBALS['APP_PATH']) or die('No direct script access.');
<?php namespace Laravel; defined('DS') or die('No direct script access.');
class Autoloader {
@@ -62,7 +62,7 @@ class Autoloader {
if ($namespace == 'Laravel')
{
return static::load_psr($class, $GLOBALS['BASE_PATH']);
return static::load_psr($class, path('base'));
}
// If the class namespace is mapped to a directory, we will load the class
@@ -149,7 +149,7 @@ class Autoloader {
*
* <code>
* // Register a class mapping with the Autoloader
* Autoloader::map(array('User' => $GLOBALS['APP_PATH'].'models/user.php'));
* Autoloader::map(array('User' => path('app').'models/user.php'));
* </code>
*
* @param array $mappings