Commit 20186dca authored by Taylor Otwell's avatar Taylor Otwell

refactoring loader class.

parent 0cc0b7ac
...@@ -47,10 +47,7 @@ class Loader { ...@@ -47,10 +47,7 @@ class Loader {
{ {
$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);
} }
......
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