3

我正在将 symfony2 与作曲家一起使用。http://getcomposer.org/doc/04-schema.md

我想要 composer.json 中的所有插件,我总是得到包的最新版本

我试过这个我得到错误

"php": ">=5.3.3",
        "symfony/symfony": "dev-master",
        "doctrine/orm": ">=2.2.3,<dev-master",
        "doctrine/doctrine-bundle": "dev-master",
        "twig/extensions": "dev-master*",
        "symfony/assetic-bundle": "dev-master",
        "symfony/swiftmailer-bundle": "dev-master",
        "symfony/monolog-bundle": "dev-master",
        "sensio/distribution-bundle": "dev-master",
        "sensio/framework-extra-bundle": "dev-master",
        "sensio/generator-bundle": "dev-master",
        "jms/security-extra-bundle": "dev-master",
        "jms/di-extra-bundle": "dev-master",
        "doctrine/doctrine-migrations-bundle": "dev-master",
        "jms/serializer-bundle": "dev-master",
        "genemu/form-bundle": "dev-master",
        "stof/doctrine-extensions-bundle": "dev-master",
        "friendsofsymfony/user-bundle": "*"

错误是

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package twig/extensions dev-master* could not be found.
4

1 回答 1

4

用于树枝/扩展的版本是dev-master,但您使用的是dev-master*. 最后删除通配符,它​​应该会更好。

于 2013-01-13T09:49:24.370 回答