奏鸣曲媒体包错误
error in sonata media bundle
我在文档中安装了奏鸣曲管理包
我的问题是我在清除缓存时收到此错误
运行时注意:Sonata\MediaBundle\Controller\MediaAdminController::render() 的声明应该兼容 Symfony\Bundle\FrameworkBundle\Controller\Controller::render($view, array $parameters = Array, Symfony\Component\HttpFoundation\Response $response =空)
这是我的 composer.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
我在文档中安装了奏鸣曲管理包 我的问题是我在清除缓存时收到此错误
运行时注意:Sonata\MediaBundle\Controller\MediaAdminController::render() 的声明应该兼容 Symfony\Bundle\FrameworkBundle\Controller\Controller::render($view, array $parameters = Array, Symfony\Component\HttpFoundation\Response $response =空)
这是我的 composer.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