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