Skip to content

Commit 025986e

Browse files
committed
Include config in exception message
Added the configuration needed to disable view annocations.
1 parent dcd6018 commit 025986e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DependencyInjection/Compiler/ConfigurationCheckPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class ConfigurationCheckPass implements CompilerPassInterface
2424
public function process(ContainerBuilder $container)
2525
{
2626
if ($container->has('sensio_framework_extra.view.listener') && $container->has('fos_rest.view_response_listener')) {
27-
throw new \RuntimeException('You need to disable the view annotations in SensioFrameworkExtraBundle when using the FOSRestBundle View Response listener.');
27+
throw new \RuntimeException('You need to disable the view annotations in SensioFrameworkExtraBundle when using the FOSRestBundle View Response listener. Add "view: { annotations: false }" to the sensio_framework_extra: section of your config.yml');
2828
}
2929

3030
if ($container->has('fos_rest.converter.request_body') && !$container->has('sensio_framework_extra.converter.listener')) {

0 commit comments

Comments
 (0)