forked from extern/egroupware
4loader:
namespace: add else autoload app vendor
This commit is contained in:
parent
f436538797
commit
7f572fdeb5
@ -49,6 +49,15 @@ spl_autoload_register(function($class)
|
|||||||
require_once $path;
|
require_once $path;
|
||||||
//error_log("PSR4_autoload('$class') --> require_once($path) --> class_exists('$class')=".array2string(class_exists($class,false)));
|
//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);
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user