Update autoload.php

- add interface exist check for interface loading by vendor classes
This commit is contained in:
stefanwerfling 2017-12-21 19:19:03 +01:00 committed by GitHub
parent 84dc97dc83
commit bfabaa52eb
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);
}