SyliusCmsPlugin: Installation error

Hi I would like to use your plugin with sf 4.1.7 and Sylius 1.3.2, but the installation fail while doing :

composer req  bitbag/cms-plugin
Using version ^2.1 for bitbag/cms-plugin
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "^3.4|^4.1"
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for phpunit/phpunit (locked at 6.5.13, required as ^6.5) -> satisfiable by phpunit/phpunit[6.5.13].
    - bitbag/cms-plugin v2.1.0 requires matthiasnoback/symfony-config-test ^4.0 -> satisfiable by matthiasnoback/symfony-config-test[4.0.0].
    - bitbag/cms-plugin v2.1.1 requires matthiasnoback/symfony-config-test ^4.0 -> satisfiable by matthiasnoback/symfony-config-test[4.0.0].
    - Conclusion: don't install matthiasnoback/symfony-config-test 4.0.0
    - Installation request for bitbag/cms-plugin ^2.1 -> satisfiable by bitbag/cms-plugin[v2.1.0, v2.1.1].


Installation failed, reverting ./composer.json to its original content.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 40 (22 by maintainers)

Most upvoted comments

@bitbager done. I also fix some other deps.

so still not updated?

“repositories”: [ { “type”: “github”, “url”: “https://github.com/BitBagCommerce/SyliusCmsPlugin” } ],

It works, thanks!

Hello guys!

Sorry for a late response, I’ve been kind of busy recently. Thank you for your PR, I am going to merge it in a minute!

Can’t we allow matthiasnoback/symfony-config-test in 3.x & 4.x versions and PHPUnit in 6.5.x + 7.x? There’s some rather overlap in there, just some PHPUnit version stuff. That’s what I do e.g. here: https://github.com/stefandoorn/sitemap-plugin/blob/master/composer.json. Makes the plugin more useable, now I need to upgrade my whole project to PHPUnit 7 first before being able to update. Quite an hassle.

@ersinpw : please read all this thread : answer is here

With composer require bitbag/cms-plugin:@dev, the composer installation works.

But when I configure the bundle, I have a problem with sitemap-plugin :

Exception thrown when handling an exception (Symfony\Component\Config\Exception\FileLoaderLoadException: Do not add the “extra” loader twice in . (which is being imported from “Sylius/vendor/stefandoorn/sitemap-plugin/src/Resources/config/routing.yml”). Make sure there is a loader supporting the “sitemap” type.)

@KirbyFox Do you use dev-master ?

And you have to put "phpunit/phpunit": "^7.0" in your composer.json because matthiasnoback/symfony-config-test require it.

The problem wasn’t phpunit version but only the fact that matthiasnoback/symfony-config-test package wasn’t in require-dev. This is the second time I made a pull request for this kind of error in Sylius, maybe Sylius should have a require-dev bundle to regroup dev dependencies over plugins and simplify futur update (because we have to manually diff sylius/sylius-standard composer.json at every update). Also, a way of testing the app only in production mode in travis would be better.