Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 13a98ec

Browse filesBrowse files
javiereguiluzxabbuh
authored andcommitted
minor #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
1 parent 168d5d6 commit 13a98ec
Copy full SHA for 13a98ec

File tree

1 file changed

+2
-4
lines changed
Filter options

1 file changed

+2
-4
lines changed

‎event_dispatcher.rst

Copy file name to clipboardExpand all lines: event_dispatcher.rst
+2-4Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.