qiniu.php 370 B

12345678910111213
  1. <?php
  2. function classLoader($class)
  3. {
  4. $path = str_replace('\\', DIRECTORY_SEPARATOR, $class);
  5. $file = __DIR__ . '/' . $path . '.php';
  6. if (file_exists($file)) {
  7. require_once $file;
  8. }
  9. }
  10. spl_autoload_register('classLoader');
  11. require_once __DIR__ . '/Qiniu/functions.php';
  12. require_once __DIR__ . '/Qiniu/Http/Middleware/Middleware.php';