AliOssForTypecho/aliyun-oss-php-sdk-2.3.0/autoload.php

12 lines
302 B
PHP
Executable File

<?php
function classLoader($class)
{
$path = str_replace('\\', DIRECTORY_SEPARATOR, $class);
$file = __DIR__ . DIRECTORY_SEPARATOR .'src'. DIRECTORY_SEPARATOR . $path . '.php';
if (file_exists($file)) {
require_once $file;
} else {
}
}
spl_autoload_register('classLoader');