Im trying to use the following two bundles in my symfony2.1 project:
My problem is, the two bundles use both knp-menu bundle. But sonata needs 1.1.x-dev of knp-menu bundle and braincrafted bootstrap-bundle dev-master.
With the following composer settings i get the following error. Composer.json:
"sonata-project/admin-bundle": "dev-master", "sonata-project/doctrine-orm-admin-bundle": "dev-master", "sonata-project/intl-bundle": "dev-master", "sonata-project/cache-bundle": "dev-master", "knplabs/knp-menu-bundle": "1.1.x-dev", "braincrafted/bootstrap-bundle": "dev-develop"
Error: Knp\Menu\Matcher\Voter\VoterInterface' not found in vendor/braincrafted/bootstrap-bundle/Braincrafted/BootstrapBundle/Voter/RequestVoter
I know that the Matcher doesn't exist in the early knp menu bundle version. But if i change the knp menu bundle version to:
"knplabs/knp-menu-bundle": "dev-master",
it isn't possible to install the sonata admin bundle. The following error occurs if i execute the command "composer.phar update"
Problem 1
- sonata-project/admin-bundle dev-master requires knplabs/knp-menu-bundle >=1.1.0,<2.0.x-dev -> satisfiable by knplabs/knp-menu-bundle 1.1.x-dev, knplabs/knp-menu-bundle 1.1.x-dev, knplabs/knp-menu-bundle v1.1.0.
- sonata-project/admin-bundle dev-master requires knplabs/knp-menu-bundle >=1.1.0,<2.0.x-dev -> satisfiable by knplabs/knp-menu-bundle 1.1.x-dev, knplabs/knp-menu-bundle 1.1.x-dev, knplabs/knp-menu-bundle v1.1.0.
- Can only install one of: knplabs/knp-menu-bundle dev-master, knplabs/knp-menu-bundle 1.1.x-dev.
- Can only install one of: knplabs/knp-menu-bundle dev-master, knplabs/knp-menu-bundle 1.1.x-dev.
- Can only install one of: knplabs/knp-menu-bundle v1.1.0, knplabs/knp-menu-bundle dev-master.
- Installation request for knplabs/knp-menu-bundle dev-master -> satisfiable by knplabs/knp-menu-bundle dev-master.
- Installation request for sonata-project/admin-bundle dev-master -> satisfiable by sonata-project/admin-bundle dev-master.
Has someone an idea how can i use both bundles or isn't there a way? Thanks for help.