当我尝试安装sonata admin和LiipFunctionalTestBundle时,它会给我一个验证器问题,
FileLoaderLoadException:Catchable Fatal Error:传递给Sonata \ AdminBundle \ Admin \ Admin :: setValidator()的参数1必须实现接口Symfony \ Component \ Validator \ ValidatorInterface,给出的Liip \ FunctionalTestBundle \ Validator \ DataCollectingValidator实例,在/中调用第713行的var / www / app.gyman / app / cache / dev / appDevDebugProjectContainer.php,在/var/www/app.gyman/app/config/中定义。 (正在从" /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":"*"
它给了我这个错误:
问题1 - sonata-project / doctrine-orm-admin-bundle dev-master的安装请求 - >可满足的 奏项目/学说-ORM管理员束[DEV-主]。
- 只能安装以下之一:sonata-project / core-bundle [dev-master,2.x-dev] - sonata-project / doctrine-orm-admin-bundle dev-master需要sonata-project / core-bundle ^ 2.3.1 - >可满足的 奏项目/芯束[2.x的-dev的]。
- sonata-project / core-bundle dev-master的安装请求 - >可以通过sonata-project / core-bundle [dev-master]来满足。
答案 0 :(得分:1)
使用旧版本的Liip Functional测试包解决 ,我的新作曲家如下:
"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",
答案 1 :(得分:0)
SonataAdminBundle的3.0.0
版本已发布6 days ago。但看起来SonataDoctrineORMAdminBundle出现了问题,该问题已修复two days ago,现在可在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软件包,请参阅我之前删除的以下答案中的这些评论:
我尝试了很多版本,但仍然遇到了与你相同的问题,看起来好像奏鸣曲包已经坏了...... - A.L 5月3日18:06
确切地说,我们必须等待几天,希望这个版本可以解决 - Nada May 3 at 20:34