Composer: how to install `dev` packages in Symfony 2.3?

后端 未结 2 1754
小蘑菇
小蘑菇 2020-12-31 14:13

Trying to install the KnpGaufretteBundle in a Symfony 2.3 project, I\'m having no luck. The problem is:

  1. minimum-stability:stable (in compose
2条回答
  •  遥遥无期
    2020-12-31 14:47

    just use

    "knplabs/knp-gaufrette-bundle": "dev-master@dev" 
    

    if you need the latest dev version

    you can also change minimum-stability to dev and add "prefer-stable": true like this:

    "minimum-stability": "dev",
    "prefer-stable": true,
    

    then composer will always try to find a stable version and if nothing found install dev, so your symfony packages will be still stable. But in your case composer will install v0.1.4 (latest stable of knplabs/knp-gaufrette-bundle), so you need dev-master@dev anyway. prefer-stable is just a hint for you.

提交回复
热议问题