From 7f572fdeb5ce62c486a213d3d1d57334f0985229 Mon Sep 17 00:00:00 2001 From: Stefan Werfling Date: Thu, 13 Jul 2017 13:35:02 +0200 Subject: [PATCH] 4loader: namespace: add else autoload app vendor --- api/src/autoload.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/api/src/autoload.php b/api/src/autoload.php index 369ca317d7..6c98795b60 100755 --- a/api/src/autoload.php +++ b/api/src/autoload.php @@ -49,6 +49,15 @@ spl_autoload_register(function($class) require_once $path; //error_log("PSR4_autoload('$class') --> require_once($path) --> class_exists('$class')=".array2string(class_exists($class,false))); } + elseif (file_exists($al= EGW_INCLUDE_ROOT.'/'.$app.'/vendor/autoload.php')) + { + require_once($al); + + if (class_exists($partclass = implode('\\', $parts), true)) + { + class_alias($partclass, $class); + } + } }); /**