限时免费试用:欢迎注册 api.bigmodel.org ,快速体验大模型 API 接入服务。

软件教程

composer | 加载autoload配置

加载autoload配置 composer.json //引用的其他类库 "require": { "php": ">=5.4.0", "topthink/framework": "5.0.*", "topthink/think-captcha": "1.*", "topthink/think-mongo": "1.*", "topthink/think-i

作者
王明昌
发布时间

加载autoload配置

composer.json
//引用的其他类库
"require": {
        "php": ">=5.4.0",
        "topthink/framework": "5.0.*",
        "topthink/think-captcha": "1.*",
        "topthink/think-mongo": "1.*",
        "topthink/think-image": "1.*",
        "topthink/think-queue": "1.*",
        "topthink/think-migration": "1.*",
        "topthink/think-oracle": "1.*"
    },
//自动加载项
    "autoload": {
          //系统启动时自动加载的文件
        "files":[
          "con/function.php"
          ],
        "psr-4": {
            "app\\": "application",
            "ven\\": "vendor"
        }
    },
命令行更新composer.json
composer dump
0/500
友善分享您的看法。
反馈邮箱