与奏鸣曲管理包和 LiipFunctionalTestBundle 冲突
Conflicts with sonata admin bundle and LiipFunctionalTestBundle
当我尝试安装 sonata admin 和 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 dev master 的建议,当我这样做时,
"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].
使用旧版本的 Liip 功能测试包解决
,我的新作曲家如下:
"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",
SonataAdminBundle 3.0.0
版本已经发布 6 days ago. But it looks like there was a problem with SonataDoctrineORMAdminBundle that has been fixed two days ago, it is now available on Packagist。
现在可以使用这些版本的 Sonata 软件包:
{
"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)
[…]
依赖项存在一些问题,无法安装 Sonata 捆绑包,请参阅我之前删除的这些评论:
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
当我尝试安装 sonata admin 和 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 dev master 的建议,当我这样做时,
"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].
使用旧版本的 Liip 功能测试包解决 ,我的新作曲家如下:
"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",
SonataAdminBundle 3.0.0
版本已经发布 6 days ago. But it looks like there was a problem with SonataDoctrineORMAdminBundle that has been fixed two days ago, it is now available on Packagist。
现在可以使用这些版本的 Sonata 软件包:
{
"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)
[…]
依赖项存在一些问题,无法安装 Sonata 捆绑包,请参阅我之前删除的这些评论:
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