schmittjoh / JMSI18nRoutingBundle

Allows you to internationalize your routing
http://jmsyst.com/bundles/JMSI18nRoutingBundle
357 stars 159 forks source link

Compatibility Issue with symfony 2.8 #220

Closed AienTech closed 6 years ago

AienTech commented 6 years ago

Cannot install the bundle when using Symfony 2.8. Is there any workarounds?

error trace: composer require "jms/i18n-routing-bundle":"dev-master":

/composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for jms/i18n-routing-bundle dev-master -> satisfiable by jms/i18n-routing-bundle[dev-master].
    - Conclusion: remove symfony/symfony v2.8.32
    - Conclusion: don't install symfony/symfony v2.8.32
    - jms/i18n-routing-bundle dev-master requires symfony/framework-bundle ^4.0 -> satisfiable by symfony/framework-bundle[v4.0.0, v4.0.1, v4.0.2, v4.0.3].
    - symfony/framework-bundle v4.0.0 conflicts with symfony/symfony[v2.8.32].
    - symfony/framework-bundle v4.0.1 conflicts with symfony/symfony[v2.8.32].
    - symfony/framework-bundle v4.0.2 conflicts with symfony/symfony[v2.8.32].
    - symfony/framework-bundle v4.0.3 conflicts with symfony/symfony[v2.8.32].
    - Installation request for symfony/symfony (locked at v2.8.32, required as 2.8.*) -> satisfiable by symfony/symfony[v2.8.32].

Installation failed, reverting ./composer.json to its original content.
acasademont commented 6 years ago

You should use the 2.x version (2.0.4 is the latest of the 2.x series), not the latest master!

composer require "jms/i18n-routing-bundle":"^2.0"