In this repo i store all my websites, each in a different branch
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

11 行
373 B

  1. <?php
  2. require_once __DIR__ . '/../src/functions.php';
  3. spl_autoload_register(function($class) {
  4. if (strpos($class, 'FastRoute\\') === 0) {
  5. $dir = strcasecmp(substr($class, -4), 'Test') ? 'src/' : 'test/';
  6. $name = substr($class, strlen('FastRoute'));
  7. require __DIR__ . '/../' . $dir . strtr($name, '\\', DIRECTORY_SEPARATOR) . '.php';
  8. }
  9. });