我正在尝试在WAMP上安装Sonata管理捆绑包。首先,将依赖捆绑包添加到供应商/捆绑包目录中。将以下行添加到文件部门。
[SonatajQueryBundle]
git=http://github.com/sonata-project/SonatajQueryBundle.git
target=/bundles/Sonata/jQueryBundle
[SonataUserBundle]
git=http://github.com/sonata-project/SonataUserBundle.git
target=/bundles/Sonata/UserBundle
[SonataAdminBundle]
git=http://github.com/sonata-project/SonataAdminBundle.git
target=/bundles/Sonata/AdminBundle
[KnpMenuBundle]
git=https://github.com/KnpLabs/KnpMenuBundle.git
target=/bundles/Knp/Bundle/MenuBundle
[KnpMenu]
git=https://github.com/KnpLabs/KnpMenu.git
target=/knp/menu
[SonataDoctrineORMAdminBundle]
git=http://github.com/sonata-project/SonataDoctrineORMAdminBundle.git
target=/bundles/Sonata/DoctrineORMAdminBundle
现在在供应商中安装这些捆绑包时出现问题。我运行这个表扬php bin/vendors install
但它是表演Try to run ./bin/vendors install --reinstall
我的捆绑包有问题吗?我真的不知道该怎么办。请帮忙。
我感谢所有的帮助。
谢谢!
您可能使用的是不兼容的Symfony
和SonataAdminBundle
版本。
此外,您可能缺少最新版本SonataAdminBundle
所需的SonataBlockBundle
和SonataCacheBundle
(请查看SonataAdmin安装参考)。 Symfony
,SonataAdminBundle
和Doctrine2
只在特定的组合中一起工作。
建议:尝试本教程中的相关说明,或者更好的是,克隆此存储库并根据说明对其进行配置。
您将有一个有效的安装,然后您可以向其添加现有捆绑包。