13 lines
294 B
PHP
13 lines
294 B
PHP
|
<?php
|
||
|
|
||
|
namespace FastRoute;
|
||
|
|
||
|
require __DIR__ . '/functions.php';
|
||
|
|
||
|
spl_autoload_register(function ($class) {
|
||
|
if (strpos($class, 'FastRoute\\') === 0) {
|
||
|
$name = substr($class, strlen('FastRoute'));
|
||
|
require __DIR__ . strtr($name, '\\', DIRECTORY_SEPARATOR) . '.php';
|
||
|
}
|
||
|
});
|