Search code examples
symfonydependenciescomposer-phpsymfony-2.7symfony3

Symfony 3 update dependencies conflicts


Trying to update the project from Symfony 2.7 to 3.x, when i run a composer update i get dependency conflicts between the different bundles i'm using, for example:

friendsofsymfony/jsrouting-bundle 1.5.3 requires symfony/framework-bundle ~2.0
lunetics/locale-bundle 2.4.5 requires symfony/framework-bundle ^2.8|^3.0

and

symfony/framework-bundle 3.3.x-dev conflicts with symfony/symfony[v3.0.0]

is there a workaround to solve the conflicts without disabling the bundles ?

my composer.json file: https://pastebin.com/tAsij64M


Solution

  • You have to update :

    • jsrouting-bundle to ^1.6 in order to be compatible with framework-bundle 3.*
    • symfony to 3.3 or downgrade framework-bundle to 3.0.* because symfony and framework-bundle must have the same version