Skip to content

Commit 73c8fd0

Browse files
committed
minor #1794 make the exception controller service public (xabbuh)
This PR was merged into the 2.2-dev branch. Discussion ---------- make the exception controller service public With Symfony 4.0+, services will be private by default if not configured differently. A controller that is registered as a service must be public to allow the resolver to properly retrieve the controller from the service container. Commits ------- 4f5f9c1 make the exception controller service public
2 parents 871f2e8 + 4f5f9c1 commit 73c8fd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Resources/config/exception_listener.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<argument type="service" id="logger" on-invalid="null" />
1313
</service>
1414

15-
<service id="fos_rest.exception.controller" class="FOS\RestBundle\Controller\ExceptionController">
15+
<service id="fos_rest.exception.controller" class="FOS\RestBundle\Controller\ExceptionController" public="true">
1616
<argument type="service" id="fos_rest.view_handler" />
1717
<argument type="service" id="fos_rest.exception.codes_map" /> <!-- exception codes -->
1818
<argument /><!-- show exception -->

0 commit comments

Comments
 (0)