限时免费试用:欢迎注册 api.bigmodel.org ,快速体验大模型 API 接入服务。
当前位置:首页 >软件教程

composer | 加载autoload配置

分类:软件教程时间:2018-03-05浏览:2420

加载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
Share your thoughts respectfully.