Skip to content

Commit 4051e7f

Browse files
committed
Improved a help note about event subscribers
1 parent 9e2493e commit 4051e7f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/config/services.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ services:
3131
tags:
3232
- { name: kernel.event_listener, event: kernel.request, method: onKernelRequest }
3333

34-
# Event subscribers are similar to event listeners but they don't need service tags.
35-
# Instead, the PHP class of the event subscriber includes a method that returns
36-
# the list of events listened by that class.
34+
# Event subscribers are similar to event listeners but they don't need to add
35+
# a separate tag for each listened event. Instead, the PHP class of the event
36+
# subscriber includes a method that returns the list of listened events.
3737
# See http://symfony.com/doc/current/event_dispatcher.html#creating-an-event-subscriber
3838
app.console_subscriber:
3939
class: AppBundle\EventListener\ConsoleEventSubscriber

0 commit comments

Comments
 (0)