Commit 22e5d8e4 authored by Taylor Otwell's avatar Taylor Otwell

tweaking autoloader variables.

parent 2f66c978
...@@ -14,7 +14,7 @@ class Autoloader { ...@@ -14,7 +14,7 @@ class Autoloader {
* *
* @var array * @var array
*/ */
public static $psr = array(); public static $directories = array();
/** /**
* The mappings for namespaces to directories. * The mappings for namespaces to directories.
...@@ -87,7 +87,7 @@ class Autoloader { ...@@ -87,7 +87,7 @@ class Autoloader {
// resides, so we'll convert them to slashes. // resides, so we'll convert them to slashes.
$file = str_replace(array('\\', '_'), '/', $class); $file = str_replace(array('\\', '_'), '/', $class);
$directories = $directory ?: static::$psr; $directories = $directory ?: static::$directories;
$lower = strtolower($file); $lower = strtolower($file);
...@@ -157,7 +157,7 @@ class Autoloader { ...@@ -157,7 +157,7 @@ class Autoloader {
{ {
$directories = static::format($directory); $directories = static::format($directory);
static::$psr = array_unique(array_merge(static::$psr, $directories)); static::$directories = array_unique(array_merge(static::$directories, $directories));
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment