Commit 11ac2919 authored by Taylor Otwell's avatar Taylor Otwell

Refactor the auto-loader.

parent 7282954e
......@@ -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);
}
......
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