src/Core/Loader.php
private static function requireFile($file, $throw_exception = false, $check_file_exists = true)
    {
        if (isset(self::$loaded[$file])) {
            return true;
        } elseif ($check_file_exists === false) {
            require $file;
            self::$loaded[$file] = true;
            return true;
        } elseif (is_file($file)) {
            require $file;
            self::$loaded[$file] = true;
            return true;
        } elseif ($throw_exception) {
            throw new CoreException("未找到要载入的文件:{$file}");
        } else {
            return false;
        }
    }
private static function requireFile($file, $throw_exception = false, $check_file_exists = true)
    {
        if (isset(self::$loaded[$file])) {
            return true;
        } elseif ($check_file_exists === false) {
            require $file;
            self::$loaded[$file] = true;
            return true;
        } elseif (is_file($file)) {
            require $file;
            self::$loaded[$file] = true;
            return true;
        } elseif ($throw_exception) {
            throw new CoreException("未找到要载入的文件:{$file}");
        } else {
            return false;
        }
    }
require文件

@param $file
@param bool $throw_exception
@param bool $check_file_exists
@return bool
@throws CoreException