[英]SonataAdminBundle with Symfony ~2.4 - how to install?
我刚刚建立了一个新的Symfony 2.4项目,并尝试安装SonataAdminBundle( 指令 ),但是再次出现错误。
历史 :
# install symfony (demo works!)
composer create-project symfony/framework-standard-edition ./ 2.4.*
# install admin bundle (instruction above)
composer require sonata-project/admin-bundle
-> version: dev-master
# install DoctrineORMAdminBundle (FAILS!)
composer require sonata-project/doctrine-orm-admin-bundle
-> version: dev-master
好吧,我在步骤1.2失败, 错误 :
Please provide a version constraint for the sonata-project/doctrine-orm-admin-bundle requirement: dev-master
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Generating autoload files
Updating the "app/config/parameters.yml" file
[Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException]
The service "sonata.admin.builder.orm_datagrid" has a dependency on a non-existent service "sonata.admin.builder.filter.factory".
Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-update-cmd event terminated with an exception
[RuntimeException]
An error occurred when executing the ""cache:clear --no-warmup"" command.
require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-update] [packages1] ... [packagesN]
有趣的线:
The service "sonata.admin.builder.orm_datagrid" has a dependency on a non-existent service "sonata.admin.builder.filter.factory".
有谁知道该怎么办? 在此先多谢!
您必须注册SonataAdminBundle和SonataDoctrineOrmAdminBundle。 您好像忘记了激活SonataAdminBundle。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.