sonata-project / SonataDoctrineORMAdminBundle

Integrate Doctrine ORM into the SonataAdminBundle
https://docs.sonata-project.org/projects/SonataDoctrineORMAdminBundle
MIT License
445 stars 344 forks source link

knplabs/knp-menu-bundle 1.1.x-dev -> no matching package found #196

Closed yvh closed 11 years ago

yvh commented 11 years ago

Hi all,

I'm trying to update my dependencies but I have this message

Problem 1
    - sonata-project/doctrine-orm-admin-bundle dev-master requires knplabs/knp-menu-bundle 1.1.x-dev -> no matching package found.
    - sonata-project/doctrine-orm-admin-bundle dev-master requires knplabs/knp-menu-bundle 1.1.x-dev -> no matching package found.
    - Installation request for sonata-project/doctrine-orm-admin-bundle dev-master -> satisfiable by sonata-project/doctrine-orm-admin-bundle dev-master.

knp-menu-bundle 1.1.x-dev don't exist ???

Thanks for your help.

stof commented 11 years ago

This is because the bundle is requiring the dev version, forbidding to use any stable version (which breaks if your project forbids dev versions). See my PR for the fix

ebuildy commented 11 years ago

@stof How is it possible to install this so ?

Thanks

stof commented 11 years ago

Well, for now, allow the dev versions of KnpMenuBundle in your root composer.json so that it can be used to match the constraint:

{
    "require": {
        "knplabs/knp-menu-bundle": "@dev"
    }
}

Once @rande comes back from vacation, my PR fixing it will hopefuly be merged

tobiasoberrauch commented 11 years ago

@stof I tried your metioned fix but it occurs more errors: https://gist.github.com/tobiasoberrauch/5451097

Here are my requirements (composer.json): https://gist.github.com/tobiasoberrauch/5451100

stof commented 11 years ago

This has nothing to do with KnpMenu. you are requiring dev-master of the DoctrineOrmAdminBundle and 2.1.* of Symfony, while the master branch is for Symfony 2.2, not for 2.1