欢迎光临
感谢一路有你

composer | 加载autoload配置

如果你对该文章中的内容有疑问/不解,可以点击此处链接提问
要注明问题和此文章链接地址 点击此处跳转
 

加载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

 

 

赞(1) 打赏
未经允许不得转载:王明昌博客 » composer | 加载autoload配置
分享到: 更多 (0)

相关推荐

  • 暂无文章

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏

×
订阅图标按钮