[英]SonataAdminBundle with Symfony ~2.4 - how to install?
I just set up a new Symfony 2.4 project and try to install the SonataAdminBundle ( instruction ), but I get errors again. 我刚刚建立了一个新的Symfony 2.4项目,并尝试安装SonataAdminBundle( 指令 ),但是再次出现错误。
History : 历史 :
# 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
Well, I failed on step 1.2 , error : 好吧,我在步骤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]
Interesting line: 有趣的线:
The service "sonata.admin.builder.orm_datagrid" has a dependency on a non-existent service "sonata.admin.builder.filter.factory".
Does anyone know what to do? 有谁知道该怎么办? Thanks a lot in advance!
在此先多谢!
You have to register both the SonataAdminBundle and SonataDoctrineOrmAdminBundle. 您必须注册SonataAdminBundle和SonataDoctrineOrmAdminBundle。 It looks like you forgot to activate SonataAdminBundle.
您好像忘记了激活SonataAdminBundle。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.