Skip to content

Commit

Permalink
Attempt to fix the converter
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Krämer committed Jan 8, 2025
1 parent 16951e4 commit 3aba859
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,21 @@ services:
arguments:
$validationErrorsBuilder: '@Phauthentic\Symfony\ProblemDetails\Validation\ValidationErrorsBuilder'
$problemDetailsResponseFactory: '@Phauthentic\Symfony\ProblemDetails\FromExceptionEventFactoryInterface'
tags:
- { name: 'exception.converter' }

Phauthentic\Symfony\ProblemDetails\ExceptionConversion\HttpExceptionConverter:
arguments:
$problemDetailsFactory: '@Phauthentic\Symfony\ProblemDetails\ProblemDetailsFactoryInterface'
tags:
- { name: 'exception.converter' }

Phauthentic\Symfony\ProblemDetails\ExceptionConversion\GenericExceptionConverter:
tags:
- { name: 'exception.converter' }

Phauthentic\Symfony\ProblemDetails\ThrowableToProblemDetailsKernelListener:
arguments:
$exceptionConverters:
- '@Phauthentic\Symfony\ProblemDetails\ExceptionConversion\ValidationFailedExceptionConverter'
- '@Phauthentic\Symfony\ProblemDetails\ExceptionConversion\HttpExceptionConverter'
- '@Phauthentic\Symfony\ProblemDetails\ExceptionConversion\GenericExceptionConverter'
$exceptionConverters: !tagged_iterator exception.converter
tags:
- { name: 'kernel.event_listener', event: 'kernel.exception', priority: 0 }
- { name: 'kernel.event_listener', event: 'kernel.exception', priority: 0 }

0 comments on commit 3aba859

Please sign in to comment.