Refactor the auto-loader.

This commit is contained in:
Taylor Otwell
2011-08-08 10:44:44 -05:00
parent 7282954e27
commit 11ac2919f8

View File

@@ -47,7 +47,10 @@ class Loader {
{
$file = strtolower(str_replace('\\', '/', $class));
if (array_key_exists($class, static::$aliases)) return class_alias(static::$aliases[$class], $class);
if (array_key_exists($class, static::$aliases))
{
return class_alias(static::$aliases[$class], $class);
}
( ! static::load_from_registered($file)) or static::load_from_module($file);
}