使用本地目录将symfony 2.8升级到3.4 [英] upgrade symfony 2.8 to 3.4 using local directory
本文介绍了使用本地目录将symfony 2.8升级到3.4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在寻找如何使用本地目录将Symfony 2.8框架升级到3.4。
我的开发环境无法访问互联网。
I am looking how to upgrade the framework Symfony 2.8 to 3.4 using local directory. My development environment doesn't have access to internet.
我关注了 https://getcomposer.org/doc/05-repositories.md#path
我下载了Symfony 3.4,并将其存放在与Synfony 2.8相同的目录中
I download Symfony 3.4 and deposit it in the same directory as Synfony 2.8
Frameworks
Symfony-2.8
Symfony-3.4
然后我像下面这样配置composer.json文件(symfony 2.8):
Then I configured the composer.json file (symfony 2.8) like this :
"repositories": [
{
"type": "path",
"url" : "/frameworks/symfony3-4"
}
],
"require": {
"/frameworks/symfony3-4": "*"
},
当我尝试更新时:
Composer update
我有此错误:
Problem 1
- The requested package ../symfony3-4 could not be found in any version, there
may be a typo in the package name.
Potential causes:
A typo in the package name
The package is not available in a stable-enough version according to your minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
您有建议吗?
推荐答案
在您的require语句中使用 symfony / symfony: ^ 3.0
use "symfony/symfony": "^3.0"
in your require statement
这篇关于使用本地目录将symfony 2.8升级到3.4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文