Skip to content

Commit 3aba859

Browse files
author
Florian Krämer
committed
Attempt to fix the converter
1 parent 16951e4 commit 3aba859

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

config/services.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,21 @@ services:
1212
arguments:
1313
$validationErrorsBuilder: '@Phauthentic\Symfony\ProblemDetails\Validation\ValidationErrorsBuilder'
1414
$problemDetailsResponseFactory: '@Phauthentic\Symfony\ProblemDetails\FromExceptionEventFactoryInterface'
15+
tags:
16+
- { name: 'exception.converter' }
1517

1618
Phauthentic\Symfony\ProblemDetails\ExceptionConversion\HttpExceptionConverter:
1719
arguments:
1820
$problemDetailsFactory: '@Phauthentic\Symfony\ProblemDetails\ProblemDetailsFactoryInterface'
21+
tags:
22+
- { name: 'exception.converter' }
23+
24+
Phauthentic\Symfony\ProblemDetails\ExceptionConversion\GenericExceptionConverter:
25+
tags:
26+
- { name: 'exception.converter' }
1927

2028
Phauthentic\Symfony\ProblemDetails\ThrowableToProblemDetailsKernelListener:
2129
arguments:
22-
$exceptionConverters:
23-
- '@Phauthentic\Symfony\ProblemDetails\ExceptionConversion\ValidationFailedExceptionConverter'
24-
- '@Phauthentic\Symfony\ProblemDetails\ExceptionConversion\HttpExceptionConverter'
25-
- '@Phauthentic\Symfony\ProblemDetails\ExceptionConversion\GenericExceptionConverter'
30+
$exceptionConverters: !tagged_iterator exception.converter
2631
tags:
27-
- { name: 'kernel.event_listener', event: 'kernel.exception', priority: 0 }
32+
- { name: 'kernel.event_listener', event: 'kernel.exception', priority: 0 }

0 commit comments

Comments
 (0)