wishthis/vendor/ml/json-ld/Test/bootstrap.php
2022-01-21 09:23:52 +01:00

19 lines
613 B
PHP

<?php
if (!@include(__DIR__ . '/../vendor/autoload.php')) {
spl_autoload_register(
function ($class) {
if (0 === strpos($class, 'ML\\JsonLD\\')) {
$path = implode('/', array_slice(explode('\\', $class), 2)) . '.php';
require_once __DIR__ . '/../' . $path;
return true;
} elseif (0 === strpos($class, 'ML\\IRI\\')) {
$path = implode('/', array_slice(explode('\\', $class), 2)) . '.php';
require_once __DIR__ . '/../../IRI/' . $path;
return true;
}
}
);
}