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

Fix YAML config bug #8987

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 7, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fixed the XML and PHP config instead of the YAML config
  • Loading branch information
javiereguiluz authored Jan 7, 2018
commit ee96ffa26c1ac94d815d0441ca49aabcd1e4c2d2
9 changes: 3 additions & 6 deletions 9 event_dispatcher.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ using a special "tag":

# app/config/services.yml
services:
app.exception_listener:
class: AppBundle\EventListener\ExceptionListener:
AppBundle\EventListener\ExceptionListener:
tags:
- { name: kernel.event_listener, event: kernel.exception }

Expand All @@ -92,9 +91,7 @@ using a special "tag":
http://symfony.com/schema/dic/services/services-1.0.xsd">

<services>
<service id="app.exception_listener"
class="AppBundle\EventListener\ExceptionListener">

<service id="AppBundle\EventListener\ExceptionListener">
<tag name="kernel.event_listener" event="kernel.exception" />
</service>
</services>
Expand All @@ -106,7 +103,7 @@ using a special "tag":
use AppBundle\EventListener\ExceptionListener;

$container
->register('app.exception_listener', ExceptionListener::class)
->autowire(ExceptionListener::class)
->addTag('kernel.event_listener', array('event' => 'kernel.exception'))
;

Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.