在安装管理包时遇到此错误:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- sonata-project/admin-bundle 2.3.7 requires sensio/generator-bundle ~2.3 -> no matching package found.
- sonata-project/admin-bundle 2.3.6 requires sensio/generator-bundle ~2.3 -> no matching package found.
- sonata-project/admin-bundle 2.3.5 requires sensio/generator-bundle ~2.3 -> no matching package found.
- sonata-project/admin-bundle 2.3.4 requires sensio/generator-bundle ~2.3 -> no matching package found.
- sonata-project/admin-bundle 2.3.3 requires sensio/generator-bundle ~2.3 -> no matching package found.
- sonata-project/admin-bundle 2.3.2 requires sensio/generator-bundle ~2.3 -> no matching package found.
- sonata-project/admin-bundle 2.3.1 requires sensio/generator-bundle ~2.3 -> no matching package found.
- sonata-project/admin-bundle 2.3.0 requires sensio/generator-bundle ~2.3 -> no matching package found.
- Installation request for sonata-project/admin-bundle ^2.3 -> satisfiable by sonata-project/admin-bundle[2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
我的symfony是3.0.1
答案 0 :(得分:2)
我最近在安装sonata / admin-bundle时遇到过这种问题。
您可以使用dev依赖项,直到问题得到解决
使用composer require sonata-project/admin-bundle:dev-master
也许安装需要更新相关软件包,如sonata / user-bundle,使用软件包所需的版本或@dev
。
答案 1 :(得分:1)
在github https://github.com/sonata-project/SonataAdminBundle/issues/3467上看一下这篇关于奏鸣曲项目开发状态的文章。 https://docs.google.com/spreadsheets/d/1fSpS10nzlEj9HE-GdZ-BHcxileEzHwRIzLlNfdNtZ2k/edit#gid=0。因此,如果你能保持symfony 2.7 for Sonata Admin集成更好,至少目前是这样。
答案 2 :(得分:0)
Sonata团队完成了与Symfony3兼容的工作,但这项工作显然没有完成。
我在gitHub或文档中找不到2.4版本的SonataAdminBundle