[英]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.