0

我的作曲家.json:

{
"name": "symfony/framework-standard-edition",
"license": "MIT",
"type": "project",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
    "psr-0": { "": "src/", "SymfonyStandard": "app/" }
},
"require": {
    "php": ">=5.3.3",
    "symfony/symfony": "2.6.*",
    "doctrine/orm": "~2.2,>=2.2.3",
    "doctrine/doctrine-bundle": "~1.2",
    "twig/extensions": "~1.0",
    "symfony/assetic-bundle": "~2.3",
    "symfony/swiftmailer-bundle": "~2.3",
    "symfony/monolog-bundle": "~2.4",
    "sensio/distribution-bundle": "~3.0",
    "sensio/framework-extra-bundle": "~3.0",
    "incenteev/composer-parameter-handler": "~2.0",
    "gedmo/doctrine-extensions": "dev-master",
    "stof/doctrine-extensions-bundle": "dev-master",

在作曲家更新/安装(都尝试过)之后,我得到了那种错误

“stof/doctrine-extensions-bundle v1.1.0 需要 gedmo/doctrine-extensions 2.3.* -> 找不到匹配的包”

(图片上传)。我删除了所需的存储,然后一切正常。在我所有的项目中都得到了它(~~ 15 个完全在存储中)。

作曲家错误

4

1 回答 1

1

删除“gedmo/doctrine-extensions”:“dev-master”,

stof/doctrine-extensions-bundle 在其依赖项中有它https://packagist.org/packages/stof/doctrine-extensions-bundle

并将安装最新的 v2.3.12 https://packagist.org/packages/gedmo/doctrine-extensions满足依赖:gedmo/doctrine-extensions: ~2.3.1

"require": {
    "php": ">=5.3.3",
    "symfony/symfony": "2.6.*",
    "doctrine/orm": "~2.2,>=2.2.3",
    "doctrine/doctrine-bundle": "~1.2",
    "twig/extensions": "~1.0",
    "symfony/assetic-bundle": "~2.3",
    "symfony/swiftmailer-bundle": "~2.3",
    "symfony/monolog-bundle": "~2.4",
    "sensio/distribution-bundle": "~3.0",
    "sensio/framework-extra-bundle": "~3.0",
    "incenteev/composer-parameter-handler": "~2.0",
    "stof/doctrine-extensions-bundle": "dev-master",
于 2015-04-20T10:08:54.113 回答