我按照文档中的说明安装了sonata管理包我的问题是我得到这个错误清除缓存
运行时通知:声明Sonata medibundle ControllerMediaAdminController::render()应该兼容SymfonyBundleFrameworkBundleControllerController::render($view, array $parameters = array, SymfonyComponentHttpFoundationResponse $ Response = NULL)
这是我的作曲家。json请求
"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"
我累了一切,但仍然不知道为什么我得到这个错误,请帮助我
您使用的是sonata media 2.3和sonata admin 2.4: github issue
将所有对2.4版本的引用更改为2.3。例如:~2.3.0