[英]Symfony2 Composer Not Downloading Packages
I was recently trying to re-install the fos:userbundle and noticed the docs have changed. 我最近尝试重新安装fos:userbundle,并注意到文档已更改。 They are no longer using the deps file are now referencing the new package manager composer.
他们不再使用deps文件,现在正在引用新的程序包管理器作曲家。
I found some info about integrating composer with sf2.0.* here: http://knplabs.com/blog/symfony2-with-composer 我在这里找到了一些有关将作曲家与sf2.0。*集成的信息: http ://knplabs.com/blog/symfony2-with-composer
After downloading the src: https://github.com/KnpLabs/symfony-with-composer 下载src之后: https : //github.com/KnpLabs/symfony-with-composer
I tried adding the following to my composer.json: "friendsofsymfony/user-bundle": "*"
as per the instructions: https://github.com/FriendsOfSymfony/FOSUserBundle/blob/master/Resources/doc/index.md 我尝试按照以下说明将以下内容添加到我的composer.json:
"friendsofsymfony/user-bundle": "*"
: https : //github.com/FriendsOfSymfony/FOSUserBundle/blob/master/Resources/doc/index.md
When I run bin/vendors update
I get the following: 当我运行
bin/vendors update
我得到以下信息:
Updating dependencies
Nothing to install or update
Writing lock file
Generating autoload files
It does not appear to be installing the fos package. 它似乎没有安装fos软件包。 Am I missing something?
我想念什么吗?
Thanks 谢谢
Composer is a PHAR archive that takes care of installing dependencies, update them, create projects, etc. It has nothing to do with the old bin/vendors . Composer是PHAR存档,负责安装依赖项,更新依赖项,创建项目等。它与旧的bin / vendors没有关系 。
What you need to do is to download Composer : 您需要下载Composer :
curl -s http://getcomposer.org/installer | php
And install your dependencies: 并安装您的依赖项:
php composer.phar install
By the way, the symfony-with-composer thing you downloaded is an old version of Symfony2 Standard Distribution that isn't maintained anymore, as mentioned on the repository itself. 顺便说一下,您下载的symfony-with-composer东西是Symfony2 Standard Distribution的旧版本,该版本不再维护,如存储库本身中所述。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.