mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-14 20:17:14 +01:00
12 lines
374 B
PHP
12 lines
374 B
PHP
<?php
|
|
|
|
require_once __DIR__ . '/../src/functions.php';
|
|
|
|
spl_autoload_register(function ($class) {
|
|
if (strpos($class, 'FastRoute\\') === 0) {
|
|
$dir = strcasecmp(substr($class, -4), 'Test') ? 'src/' : 'test/';
|
|
$name = substr($class, strlen('FastRoute'));
|
|
require __DIR__ . '/../' . $dir . strtr($name, '\\', DIRECTORY_SEPARATOR) . '.php';
|
|
}
|
|
});
|