Skip to content

Commit 11aebc7

Browse files
junowildernessnicolas-grekas
authored andcommitted
bug #25844 [HttpKernel] Catch HttpExceptions when templating is not installed
1 parent 319248f commit 11aebc7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Resources/config/web.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,15 @@
6767
<argument type="service" id="router" on-invalid="ignore" />
6868
</service>
6969

70+
<service id="http_exception_listener" class="Symfony\Component\HttpKernel\EventListener\ExceptionListener">
71+
<tag name="kernel.event_listener" event="kernel.exception" method="onKernelException" priority="-256"/>
72+
<tag name="monolog.logger" channel="request" />
73+
<argument>null</argument>
74+
<argument type="service" id="logger" on-invalid="null" />
75+
<argument>%kernel.debug%</argument>
76+
<argument>%kernel.charset%</argument>
77+
</service>
78+
7079
<service id="validate_request_listener" class="Symfony\Component\HttpKernel\EventListener\ValidateRequestListener">
7180
<tag name="kernel.event_subscriber" />
7281
</service>

0 commit comments

Comments
 (0)