sonata-project / SonataAdminBundle

The missing Symfony Admin Generator
https://docs.sonata-project.org/projects/SonataAdminBundle
MIT License
2.11k stars 1.26k forks source link

composer installation with symfony 2.3 is broken #1463

Closed gondo closed 10 years ago

gondo commented 11 years ago

what is the proper composer.json setup to make this work with symfony 2.3 ?

my composer.json

    "require": {
        "php": ">=5.3.3",
        "symfony/symfony": "2.3.*",
        "doctrine/orm": ">=2.2.3,<2.4-dev",
        "doctrine/doctrine-bundle": "1.2.*",
        "twig/extensions": "1.0.*",
        "symfony/assetic-bundle": "2.3.*",
        "symfony/swiftmailer-bundle": "2.3.*",
        "symfony/monolog-bundle": "2.3.*",
        "sensio/distribution-bundle": "2.3.*",
        "sensio/framework-extra-bundle": "2.3.*",
        "sensio/generator-bundle": "2.3.*",
        "incenteev/composer-parameter-handler": "~2.0",
        "friendsofsymfony/user-bundle": "~2.0@dev",
        "knplabs/knp-menu-bundle": "2.0.*@dev",
        "knplabs/knp-menu": "2.0.*@dev"
    }

this works perfectly fine, but when i add "sonata-project/admin-bundle": "dev-master" at the end, im getting errors:

  Problem 1
    - symfony/framework-bundle 2.0.7 requires symfony/translator 2.0.7 -> no matching package found.
    - Installation request for symfony/framework-standard-edition 2.3.x-dev -> satisfiable by symfony/framework-standard-edition[2.3.x-dev].
    - Conclusion: remove symfony/symfony v2.3.1
    - knplabs/knp-menu-bundle v1.1.0 requires symfony/framework-bundle >=2.0,<2.2-dev -> satisfiable by symfony/symfony[2.0.7, v2.0.10, v2.0.11, v2.0.12, v2.0.13, v2.0.14, v2.0.15, v2.0.16, v2.0.17, v2.0.18, v2.0.19, v2.0.20, v2.0.21, v2.0.22, v2.0.23, v2.0.9, v2.1.0, v2.1.1, v2.1.10, v2.1.11, v2.1.2, v2.1.3, v2.1.4, v2.1.5, v2.1.6, v2.1.7, v2.1.8, v2.1.9], symfony/framework-bundle[2.0.7, v2.0.10, v2.0.12, v2.0.13, v2.0.14, v2.0.15, v2.0.16, v2.0.17, v2.0.18, v2.0.19, v2.0.20, v2.0.21, v2.0.22, v2.0.23, v2.0.9, v2.1.0, v2.1.1, v2.1.10, v2.1.11, v2.1.2, v2.1.3, v2.1.4, v2.1.5, v2.1.6, v2.1.7, v2.1.8, v2.1.9].
    - knplabs/knp-menu-bundle v1.1.1 requires symfony/framework-bundle >=2.0,<2.3-dev -> satisfiable by symfony/symfony[2.0.7, v2.0.10, v2.0.11, v2.0.12, v2.0.13, v2.0.14, v2.0.15, v2.0.16, v2.0.17, v2.0.18, v2.0.19, v2.0.20, v2.0.21, v2.0.22, v2.0.23, v2.0.9, v2.1.0, v2.1.1, v2.1.10, v2.1.11, v2.1.2, v2.1.3, v2.1.4, v2.1.5, v2.1.6, v2.1.7, v2.1.8, v2.1.9, v2.2.0, v2.2.1, v2.2.2, v2.2.3], symfony/framework-bundle[2.0.7, v2.0.10, v2.0.12, v2.0.13, v2.0.14, v2.0.15, v2.0.16, v2.0.17, v2.0.18, v2.0.19, v2.0.20, v2.0.21, v2.0.22, v2.0.23, v2.0.9, v2.1.0, v2.1.1, v2.1.10, v2.1.11, v2.1.2, v2.1.3, v2.1.4, v2.1.5, v2.1.6, v2.1.7, v2.1.8, v2.1.9, v2.2.0, v2.2.1, v2.2.2, v2.2.3].
    - Can only install one of: symfony/symfony[v2.3.0, v2.1.0].
    - Can only install one of: symfony/symfony[v2.3.0, v2.1.1].
    - Can only install one of: symfony/symfony[v2.3.0, v2.1.10].
    - Can only install one of: symfony/symfony[v2.3.0, v2.1.11].
    - Can only install one of: symfony/symfony[v2.3.0, v2.1.2].
    - Can only install one of: symfony/symfony[v2.3.0, v2.1.3].
    - Can only install one of: symfony/symfony[v2.3.0, v2.1.4].
    - Can only install one of: symfony/symfony[v2.3.0, v2.1.5].
    - Can only install one of: symfony/symfony[v2.3.0, v2.1.6].
    - Can only install one of: symfony/symfony[v2.3.0, v2.1.7].
    - Can only install one of: symfony/symfony[v2.3.0, v2.1.8].
    - Can only install one of: symfony/symfony[v2.3.0, v2.1.9].
    - Can only install one of: symfony/symfony[v2.3.0, v2.2.0].
    - Can only install one of: symfony/symfony[v2.3.0, v2.2.1].
    - Can only install one of: symfony/symfony[v2.3.0, v2.2.2].
    - Can only install one of: symfony/symfony[v2.3.0, v2.2.3].
    - Can only install one of: symfony/symfony[v2.3.0, 2.0.7].
    - Can only install one of: symfony/symfony[v2.3.0, v2.0.10].
    - Can only install one of: symfony/symfony[v2.3.0, v2.0.11].
    - Can only install one of: symfony/symfony[v2.3.0, v2.0.12].
    - Can only install one of: symfony/symfony[v2.3.0, v2.0.13].
    - Can only install one of: symfony/symfony[v2.3.0, v2.0.14].
    - Can only install one of: symfony/symfony[v2.3.0, v2.0.15].
    - Can only install one of: symfony/symfony[v2.3.0, v2.0.16].
    - Can only install one of: symfony/symfony[v2.3.0, v2.0.17].
    - Can only install one of: symfony/symfony[v2.3.0, v2.0.18].
    - Can only install one of: symfony/symfony[v2.3.0, v2.0.19].
    - Can only install one of: symfony/symfony[v2.3.0, v2.0.20].
    - Can only install one of: symfony/symfony[v2.3.0, v2.0.21].
    - Can only install one of: symfony/symfony[v2.3.0, v2.0.22].
    - Can only install one of: symfony/symfony[v2.3.0, v2.0.23].
    - Can only install one of: symfony/symfony[v2.3.0, v2.0.9].
    - don't install symfony/framework-bundle v2.1.0|don't install symfony/symfony v2.3.0
    - don't install symfony/framework-bundle v2.1.1|don't install symfony/symfony v2.3.0
    - don't install symfony/framework-bundle v2.1.10|don't install symfony/symfony v2.3.0
    - don't install symfony/framework-bundle v2.1.11|don't install symfony/symfony v2.3.0
    - don't install symfony/framework-bundle v2.1.2|don't install symfony/symfony v2.3.0
    - don't install symfony/framework-bundle v2.1.3|don't install symfony/symfony v2.3.0
    - don't install symfony/framework-bundle v2.1.4|don't install symfony/symfony v2.3.0
    - don't install symfony/framework-bundle v2.1.5|don't install symfony/symfony v2.3.0
    - don't install symfony/framework-bundle v2.1.6|don't install symfony/symfony v2.3.0
    - don't install symfony/framework-bundle v2.1.7|don't install symfony/symfony v2.3.0
    - don't install symfony/framework-bundle v2.1.8|don't install symfony/symfony v2.3.0
    - don't install symfony/framework-bundle v2.1.9|don't install symfony/symfony v2.3.0
    - don't install symfony/framework-bundle v2.2.0|don't install symfony/symfony v2.3.0
    - don't install symfony/framework-bundle v2.2.1|don't install symfony/symfony v2.3.0
    - don't install symfony/framework-bundle v2.2.2|don't install symfony/symfony v2.3.0
    - don't install symfony/framework-bundle v2.2.3|don't install symfony/symfony v2.3.0
    - don't install symfony/framework-bundle v2.0.10|don't install symfony/symfony v2.3.0
    - don't install symfony/framework-bundle v2.0.12|don't install symfony/symfony v2.3.0
    - don't install symfony/framework-bundle v2.0.13|don't install symfony/symfony v2.3.0
    - don't install symfony/framework-bundle v2.0.14|don't install symfony/symfony v2.3.0
    - don't install symfony/framework-bundle v2.0.15|don't install symfony/symfony v2.3.0
    - don't install symfony/framework-bundle v2.0.16|don't install symfony/symfony v2.3.0
    - don't install symfony/framework-bundle v2.0.17|don't install symfony/symfony v2.3.0
    - don't install symfony/framework-bundle v2.0.18|don't install symfony/symfony v2.3.0
    - don't install symfony/framework-bundle v2.0.19|don't install symfony/symfony v2.3.0
    - don't install symfony/framework-bundle v2.0.20|don't install symfony/symfony v2.3.0
    - don't install symfony/framework-bundle v2.0.21|don't install symfony/symfony v2.3.0
    - don't install symfony/framework-bundle v2.0.22|don't install symfony/symfony v2.3.0
    - don't install symfony/framework-bundle v2.0.23|don't install symfony/symfony v2.3.0
    - don't install symfony/framework-bundle v2.0.9|don't install symfony/symfony v2.3.0
    - symfony/framework-standard-edition 2.3.x-dev requires symfony/symfony 2.3.* -> satisfiable by symfony/symfony[v2.3.1, v2.3.0].
    - Conclusion: don't install symfony/symfony v2.3.1
    - Installation request for sonata-project/admin-bundle dev-master -> satisfiable by sonata-project/admin-bundle[dev-master].
    - Conclusion: don't install knplabs/knp-menu-bundle 2.0.x-dev|install knplabs/knp-menu-bundle v1.1.0|install knplabs/knp-menu-bundle v1.1.1
    - sonata-project/admin-bundle dev-master requires knplabs/knp-menu-bundle ~1.1 -> satisfiable by knplabs/knp-menu-bundle[1.1.x-dev, v1.1.0, v1.1.1, v1.1.2].
    - Can only install one of: knplabs/knp-menu-bundle[v2.0.0-alpha1, 1.1.x-dev].
    - Can only install one of: knplabs/knp-menu-bundle[v2.0.0-alpha1, v1.1.2].
    - symfony/framework-standard-edition 2.3.x-dev requires knplabs/knp-menu-bundle 2.0.*@dev -> satisfiable by knplabs/knp-menu-bundle[2.0.x-dev, v2.0.0-alpha1].
    - Conclusion: remove knplabs/knp-menu-bundle 2.0.x-dev|install knplabs/knp-menu-bundle v1.1.0|install knplabs/knp-menu-bundle v1.1.1

any ideas?

stof commented 11 years ago

your issue is not Symfony 2.3. It is KnpMenu. You are requiring KnpMenu 2.0 while SonataAdminBundle requires 1.1.*

gondo commented 11 years ago

thanks that did the trick. how did you identified that kpnmenu is causing this based on that error message? im still having troubles installing "sonata-project/user-bundle" but i cant identify whats the problem.

rande commented 10 years ago

KnpMenuBundle 1.1 and 2.0 are now supported