2016-05-03 63 views
1

,當我嘗試安裝奏鳴曲管理和LiipFunctionalTestBundle,它給了我一個驗證問題,衝突與奏鳴曲管理包和LiipFunctionalTestBundle

FileLoaderLoadException: Catchable Fatal Error: Argument 1 passed to Sonata\AdminBundle\Admin\Admin::setValidator() must implement interface Symfony\Component\Validator\ValidatorInterface, instance of Liip\FunctionalTestBundle\Validator\DataCollectingValidator given, called in /var/www/app.gyman/app/cache/dev/appDevDebugProjectContainer.php on line 713 and defined in /var/www/app.gyman/app/config/. (which is being imported from "/var/www/app.gyman/app/config/routing.yml").

,我發現了一些命題安裝奏鳴曲開發高手,當我做到這一點,

"sonata-project/admin-bundle": "dev-master", 
"sonata-project/doctrine-orm-admin-bundle": "dev-master", 
"sonata-project/block-bundle": "dev-master", 
"sonata-project/core-bundle": "dev-master", 
"knplabs/knp-menu-bundle":"*" 

它給了我這樣的錯誤:

Problem 1
- Installation request for sonata-project/doctrine-orm-admin-bundle dev-master -> satisfiable by sonata-project/doctrine-orm-admin-bundle[dev-master].
- Can only install one of: sonata-project/core-bundle[dev-master, 2.x-dev].
- sonata-project/doctrine-orm-admin-bundle dev-master requires sonata-project/core-bundle ^2.3.1 -> satisfiable by sonata-project/core-bundle[2.x-dev].
- Installation request for sonata-project/core-bundle dev-master -> satisfiable by sonata-project/core-bundle[dev-master].

+0

我把你的配置在'composer.json'文件和安裝失敗,它看起來像它不涉及到LiipFunctionalTestBundle它來自索納塔束。 –

+0

所以你有什麼主張來解決這個問題?我嘗試了許多版本的奏鳴曲,但總是出現同樣的錯誤 – Nada

回答

0

3.0.0版本SonataAdminBundle已經發布6 days ago。但它看起來像SonataDoctrineORMAdminBundle有問題,已經修復two days ago,它現在可在Packagist上。

現在可以使用這些版本的索納塔包:

{ 
    "require": { 
     "sonata-project/core-bundle": "3.0.*", 
     "sonata-project/admin-bundle": "3.0.*", 
     "sonata-project/doctrine-orm-admin-bundle": "3.0.*" 
    }, 
    "require-dev": { 
     "liip/functional-test-bundle": "~1.6" 
    } 
} 

和工程安裝:

$ composer update --no-interaction --no-progress 
[…] 
Updating dependencies (including require-dev) 
[…] 
    - Installing sonata-project/core-bundle (3.0.0) 
[…] 
    - Installing sonata-project/doctrine-orm-admin-bundle (3.0.0) 
[…] 
    - Installing liip/functional-test-bundle (1.6.3) 
[…] 

有一些問題的依賴,這是不可能的要安裝索納塔捆綁包,請參閱我以前回答的這些評論,因爲我已經刪除:

I have tried many versions and still have the same problem than you, it looks like the Sonata bundles are broken… – A.L May 3 at 18:06

Exactly, we must wait some days, hoping that can be solved with this versions – Nada May 3 at 20:34

+0

@Nada你試過這個解決方案嗎? –

1

解決了一個O LIIP功能測試包 的lder連續的版本,我的新作曲家如下:

  "require": { 
    "php": ">=5.3.3", 
    "symfony/symfony": "2.8.*", 
    "doctrine/orm": "~2.2,>=2.2.3", 
    "doctrine/doctrine-bundle": "~1.2", 
    "twig/extensions": "~1.0", 
    "symfony/assetic-bundle": "~2.3", 
    "symfony/swiftmailer-bundle": "~2.3", 
    "symfony/monolog-bundle": "~2.4", 
    "sensio/distribution-bundle": "~3.0", 
    "sensio/framework-extra-bundle": "~3.0" 

    "sonata-project/core-bundle": "~2.2", 
    "sonata-project/admin-bundle": "~2.2", 
    "sonata-project/user-bundle": "~2.2", 
    "sonata-project/doctrine-orm-admin-bundle": "~2.1", 
    "sonata-project/easy-extends-bundle": "2.1.7" 

}, 
"require-dev": { 
    "liip/functional-test-bundle": "1.0.2", 
相關問題