finance-pay/vendor/qiniu/php-sdk/autoload.php

15 lines
304 B
PHP
Raw Normal View History

2023-11-15 12:02:33 +08:00
<?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';