Skip to content

Commit

Permalink
fix(symfony): remove dependency on potentially inexistant `exception_…
Browse files Browse the repository at this point in the history
…listener` service
  • Loading branch information
paulandrieux committed Jan 11, 2023
1 parent 3cbb9a7 commit 4da09cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Symfony/Bundle/Resources/config/api.xml
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,10 @@
<tag name="api_platform.uri_variables.transformer" priority="-100" />
</service>

<service id="api_platform.error_listener" class="ApiPlatform\Symfony\EventListener\ErrorListener" parent="exception_listener">
<service id="api_platform.error_listener" class="ApiPlatform\Symfony\EventListener\ErrorListener">
<argument key="$controller">api_platform.action.exception</argument>
<argument type="service" id="logger" on-invalid="null">@logger</argument>
<argument>%kernel.debug%</argument>
</service>
</services>
</container>

0 comments on commit 4da09cb

Please sign in to comment.