Merge pull request #32 from stefanwerfling/patch-1

Update autoload.php
This commit is contained in:
Ralf Becker 2017-12-23 12:27:53 +07:00 committed by GitHub
commit 57b92c29de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ spl_autoload_register(function($class)
{
require_once($al);
if (class_exists($partclass = implode('\\', $parts), true))
if (class_exists($partclass = implode('\\', $parts), true) || interface_exists($partclass, true))
{
class_alias($partclass, $class);
}