mirror of
https://github.com/droomo/AliOssForTypecho.git
synced 2024-12-27 16:30:17 +08:00
12 lines
302 B
PHP
Executable File
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'); |