Composer Update Composer Update symfony symfony

Composer Update


Try running the following command:

php d:\php\php\composer.phar show -i

This should print out a list of the packages currently installed on your system, along with their versions. Look for doctrine/doctrine-bundle to see what version it has.

If it is not listed, it is possible all you need to do is add this line to the require section of your composer.json file:

    "doctrine/doctrine-bundle": "~1.3",

And then re-run the update command. However, that seems unlikely, since Composer would usually retrieve that dependency automatically if there was no conflict.

The "~1.3" is coming from the sylius/resource-bundle which has that as a dependency. This means that it is looking for any stable 1.3.X version of the DoctrineBundle package (of which only 1.3.0 exists). This is also somewhat of an old version, as the current is 1.5.2.

There are some tricks you can do as far as fooling Composer into thinking that a package matches a certain version, though these are usually not a good idea as versioned dependencies generally exist for a reason.

Most likely more information is needed to discover exactly why this isn't working, as Composer will normally let you know what packages are conflicting, and it isn't here.


The issue is with this dependancy:

"friendsofsymfony/rest-bundle": "0.11.*",

This dependency appears to rely on an older version of Symfony/framework-bundle which appears to rely on version v2.0.18 ofSymfony/dependency-injection. Strangely, there is a gap between v2.0.16 and v2.0.19 of that package and the versions you need are unavailable as the error suggests.

I found that I was able to get around this issue by bumping up the version number of your dependancy by 1:

"friendsofsymfony/rest-bundle": "0.12.*",

However, you should make sure that your application still works with this change.

The current version of friendsofsymfony/rest-bundle is 1.7, you should consider making changes to use that package if at all practical to avoid any weird conflicts like this in the future.


sylius/resource-bundle dev-master requires doctrine/doctrine-bundle ~1.3

It's likely that the doctrine bundle uses an incompatible version of something you already use.