Sen descrición

autoload.php 429B

12345678910111213141516171819
  1. <?php
  2. if ( file_exists(dirname(__FILE__).'/vendor/autoload.php') ) {
  3. require_once dirname(__FILE__).'/vendor/autoload.php';
  4. }
  5. function classLoader($class)
  6. {
  7. $path = str_replace('\\', DIRECTORY_SEPARATOR, $class);
  8. $file = __DIR__ . '/src/' . $path . '.php';
  9. if (file_exists($file)) {
  10. require_once $file;
  11. }
  12. }
  13. spl_autoload_register('classLoader');
  14. require_once __DIR__ . '/src/Qiniu/functions.php';