Skip to content

Commit

Permalink
Merge pull request overblog#803 from ferrastas/fix/use_internal_error…
Browse files Browse the repository at this point in the history
…_message_parameter

[0.13] Make sure that internal_error_message is used during ErrorHandler initialization
  • Loading branch information
mcg-web authored Jan 13, 2021
2 parents 78a921e + d56b0c2 commit 161fda8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/DependencyInjection/OverblogGraphQLExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ private function setErrorHandler(array $config, ContainerBuilder $container): vo

$container->register(ErrorHandler::class)
->setArgument(0, new Reference(EventDispatcherInterface::class))
->setArgument(1, new Reference(ExceptionConverterInterface::class));
->setArgument(1, new Reference(ExceptionConverterInterface::class))
->setArgument(2, $config['errors_handler']['internal_error_message']);

$container->register(ErrorHandlerListener::class)
->setArgument(0, new Reference(ErrorHandler::class))
Expand Down

0 comments on commit 161fda8

Please sign in to comment.