<?php

/**
 * 设置自动加载类
 * Created On 2021/11/1
 * @author yuanb yuanbo0x@gmail.com
 */
spl_autoload_register(
    function ($className) {
        $root = dirname(__FILE__);
        $root = dirname($root);
        $className = str_replace("\\", "/", $className);
        $classFileName = $root . "/$className.php";
        require_once $classFileName;
    }
);
