官方文檔地址:http://m.wtbis.cn/doc/webman/db/thinkorm.html
安裝 webman/think-orm 插件時(shí),為什么還需要指定 psr/container 包的版本?
composer -W require psr/container ^1.1.1 webman/think-orm
在還沒有執(zhí)行上述命令之前,搜了全局,發(fā)現(xiàn)就 workerman/webman-framework 包依賴 psr/container,而且申明的是 "psr/container": ">=1.0",實(shí)際 composer.lock 安裝后的鎖定版本是 2.0.1;而 think-orm 包根本就沒有依賴 psr/container 包;
如果需要指定 psr/container ^1.1.1 版本,那么直接在 workerman/webman-framework 包里面聲明不是更好嗎
因?yàn)?think-orm 使用了 psr/container ^1.1.1
如果項(xiàng)目里是安裝的 2.x 就先降級(jí)
可是從 https://packagist.org/packages/topthink/think-orm#v2.0.58 上看 topthink/think-orm 2.x 申明的依賴上沒有 psr/container