You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
think-library/vendor/qiniu/php-sdk/autoload.php

19 lines
429 B

<?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';