我的composer.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。* - >找不到匹配的包”
(图片上传)。我删除了所需的stof,然后一切正常。在我的所有项目中都有它(~~ 15完全存储)。
答案 0 :(得分: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",