6spl_autoload_register(
function ($class) {
7 if (preg_match(
'/^DebugBar/', $class)) {
8 $file = DOL_DOCUMENT_ROOT.
'/includes/maximebf/debugbar/src/'.str_replace(
'\\', DIRECTORY_SEPARATOR, $class).
'.php';
10 if (file_exists($file)) {
16 if (preg_match(
'/^'.preg_quote(
'Psr\Log',
'/').
'/', $class)) {
17 $file = DOL_DOCUMENT_ROOT.
'/includes/'.str_replace(
'\\', DIRECTORY_SEPARATOR, $class).
'.php';
19 if (file_exists($file)) {
25 if (preg_match(
'/^'.preg_quote(
'Symfony\Component\VarDumper',
'/').
'/', $class)) {
26 $class = preg_replace(
'/'.preg_quote(
'Symfony\Component\VarDumper',
'/').
'/',
'', $class);
27 $file = DOL_DOCUMENT_ROOT.
'/includes/symfony/var-dumper/'.str_replace(
'\\', DIRECTORY_SEPARATOR, $class).
'.php';
28 if (file_exists($file)) {