wishthis/vendor/ml/json-ld/Test/bootstrap.php

20 lines
613 B
PHP
Raw Normal View History

2022-01-21 08:23:52 +00:00
<?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;
}
}
);
}