Skip to content

Commit

Permalink
fix: Set twig.exception_listener as service parent (#5059)
Browse files Browse the repository at this point in the history
* fix(symfony): remove dependency on potentially inexistant `exception_listener` service

* define argument keys on service redefinition
  • Loading branch information
paulandrieux committed Jan 12, 2023
1 parent ff02d4e commit ab6822f
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 key="$logger" type="service" id="logger" on-invalid="null" />
<argument key="$debug">%kernel.debug%</argument>
</service>
</services>
</container>

0 comments on commit ab6822f

Please sign in to comment.