15 static function ($class) {
16 if (preg_match(
'/^DebugBar/', $class)) {
17 $file = DOL_DOCUMENT_ROOT.
'/includes/maximebf/debugbar/src/'.str_replace(
'\\', DIRECTORY_SEPARATOR, $class).
'.php';
19 if (file_exists($file)) {
25 if (preg_match(
'/^'.preg_quote(
'Psr\Log',
'/').
'/', $class)) {
26 $file = DOL_DOCUMENT_ROOT.
'/includes/'.str_replace(
'\\', DIRECTORY_SEPARATOR, $class).
'.php';
28 if (file_exists($file)) {
34 if (preg_match(
'/^'.preg_quote(
'Symfony\Component\VarDumper',
'/').
'/', $class)) {
35 $class = preg_replace(
'/'.preg_quote(
'Symfony\Component\VarDumper',
'/').
'/',
'', $class);
36 $file = DOL_DOCUMENT_ROOT.
'/includes/symfony/var-dumper/'.str_replace(
'\\', DIRECTORY_SEPARATOR, $class).
'.php';
37 if (file_exists($file)) {