2014-02-10 4 views
1

새로운 Symfony 2.4 프로젝트를 설치하고 SonataAdminBundle (instruction)을 설치하려고 시도했지만 오류가 다시 나타납니다.SonataAdminBundle with Symfony ~ 2.4 - 설치 방법은?

역사 :

# 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 

글쎄, 내가 step 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". 

사람이 무엇을 알고 있나요? 많은 감사드립니다!

+0

무엇이 잘못 되었나요? 우리에게 몇 가지 오류를 보여주십시오 ... –

+0

문서 작성자에게 무슨 문제가 있습니까? 적어도 우리는 깨끗한 작곡가를 보여주기보다는 오류를 보여 주어야합니다 .json과 AppKernel.php –

+0

@WouterJ 제 편집을 확인해주세요. 감사합니다! –

답변

6

SonataAdminBundle과 SonataDoctrineOrmAdminBundle을 모두 등록해야합니다. SonataAdminBundle을 활성화하는 것을 잊어 버린 것 같습니다.

+3

조언 해 주셔서 감사합니다. SonataDoctrineORMAdminBundle을 설치하기 전에 1.3과 1.4 단계를 수행해야했습니다. –

관련 문제