From 1fe54787617744097342d193eecf24257c076bac Mon Sep 17 00:00:00 2001 From: stefanwerfling Date: Thu, 21 Dec 2017 19:19:03 +0100 Subject: [PATCH] Update autoload.php - add interface exist check for interface loading by vendor classes --- api/src/autoload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/autoload.php b/api/src/autoload.php index 624c14f612..9cdee16660 100755 --- a/api/src/autoload.php +++ b/api/src/autoload.php @@ -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); }