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 Ralf Becker
parent cace666818
commit 1fe5478761

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);
}