refactoring loader class.

This commit is contained in:
Taylor Otwell 2011-08-14 22:35:08 -05:00
parent 0cc0b7ac97
commit 20186dca03
1 changed files with 1 additions and 4 deletions

View File

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