19 lines
613 B
PHP
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;
|
|
}
|
|
}
|
|
);
|
|
}
|