奏鸣曲媒体包中的错误

时间:2015-07-11 18:55:00

标签: symfony sonata-admin sonata sonata-media-bundle

我在文件中安装了sonata admin bundle 我的问题是我在清除缓存时遇到此错误

运行时注意:声明Sonata \ MediaBundle \ Controller \ MediaAdminController :: render()应该与Symfony \ Bundle \ FrameworkBundle \ Controller \ Controller :: render兼容($ view,array $ parameters = Array,Symfony \ Component \ HttpFoundation \ Response $ response = NULL)

这是我的composer.json req

    "php": ">=5.3.9",
    "symfony/symfony": "2.7.*",
    "doctrine/orm": "~2.2,>=2.2.3,<2.5",
    "doctrine/dbal": "<2.5",
    "doctrine/doctrine-bundle": "~1.4",
    "symfony/assetic-bundle": "~2.3",
    "symfony/swiftmailer-bundle": "~2.3",
    "symfony/monolog-bundle": "~2.4",
    "sensio/distribution-bundle": "~4.0",
    "sensio/framework-extra-bundle": "~3.0,>=3.0.2",
    "incenteev/composer-parameter-handler": "~2.0",

    "sonata-project/admin-bundle": "2.4.x-dev",
    "sonata-project/doctrine-orm-admin-bundle": "2.4.*@dev",
    "sonata-project/datagrid-bundle": "2.2.*@dev",
    "sonata-project/user-bundle": "2.3.*@dev",
    "sonata-project/formatter-bundle": "2.3.*@stable",
    "jms/serializer-bundle": "~0.11",

    "doctrine/doctrine-fixtures-bundle": "~2.2",
    "stof/doctrine-extensions-bundle": "dev-master",

    "egeloen/ckeditor-bundle": "~2.0",
    "sonata-project/media-bundle": "2.3.2"

我累了一切,但仍然不知道为什么我得到这个错误请帮帮我

1 个答案:

答案 0 :(得分:1)

您正在使用sonata media 2.3 with sonata admin 2.4:github issue

将对2.4版本的所有引用更改为2.3。您可以设置例如:~2.3.0