Skip to content

Commit c028faa

Browse files
committed
minor symfony#8987 Fix YAML config bug (Holicz, javiereguiluz)
This PR was merged into the 3.4 branch. Discussion ---------- Fix YAML config bug Should be merged into all version branches Commits ------- ee96ffa Fixed the XML and PHP config instead of the YAML config 876d572 Fix YAML config bug
2 parents 5aa7f8a + ee96ffa commit c028faa

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

event_dispatcher.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@ using a special "tag":
9191
http://symfony.com/schema/dic/services/services-1.0.xsd">
9292
9393
<services>
94-
<service id="app.exception_listener"
95-
class="AppBundle\EventListener\ExceptionListener">
96-
94+
<service id="AppBundle\EventListener\ExceptionListener">
9795
<tag name="kernel.event_listener" event="kernel.exception" />
9896
</service>
9997
</services>
@@ -105,7 +103,7 @@ using a special "tag":
105103
use AppBundle\EventListener\ExceptionListener;
106104
107105
$container
108-
->register('app.exception_listener', ExceptionListener::class)
106+
->autowire(ExceptionListener::class)
109107
->addTag('kernel.event_listener', array('event' => 'kernel.exception'))
110108
;
111109

0 commit comments

Comments
 (0)