Permalink
Find file Copy path
24c8ad1 Sep 20, 2015
1 contributor

Users who have contributed to this file

15 lines (11 sloc) 304 Bytes
<?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';