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