如果你对该文章中的内容有疑问/不解,可以点击此处链接提问
要注明问题和此文章链接地址 点击此处跳转
加载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
王明昌博客
