im/vendor/qiniu/php-sdk/autoload.php

20 lines
498 B
PHP
Raw Permalink Normal View History

2023-09-26 18:09:46 +08:00
<?php
if ( file_exists(dirname(__FILE__).'/vendor/autoload.php') ) {
require_once dirname(__FILE__).'/vendor/autoload.php';
}
function classLoader($class)
{
$path = str_replace('\\', DIRECTORY_SEPARATOR, $class);
$file = __DIR__ . '/src/' . $path . '.php';
if (file_exists($file)) {
require_once $file;
}
}
spl_autoload_register('classLoader');
require_once __DIR__ . '/src/Qiniu/functions.php';
require_once __DIR__ . '/src/Qiniu/Http/Middleware/Middleware.php';