我试图在我的 symfony2.1 项目中使用以下两个包:
我的问题是,这两个捆绑包都使用knp-menu bundle。但是奏鸣曲需要 1.1.x-dev 的 knp-menu 包和精心设计的 bootstrap-bundle dev-master。
使用以下作曲家设置,我收到以下错误。作曲家.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"
错误:在 vendor/braincrafted/bootstrap-bundle/Braincrafted/BootstrapBundle/Voter/RequestVoter 中找不到 Knp\Menu\Matcher\Voter\VoterInterface'
我知道早期的 knp 菜单捆绑版本中不存在 Matcher。但是,如果我将 knp 菜单包版本更改为:
“knplabs/knp-menu-bundle”:“开发大师”,
无法安装奏鸣曲管理包。如果我执行命令“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.
有人知道我如何使用这两个捆绑包还是没有办法?感谢帮助。