Skip to content

Commit b1d0bdf

Browse files
authored
Update event_dispatcher.rst
Trying to get rid of wrong bot note.
1 parent 7bf2aae commit b1d0bdf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

components/event_dispatcher.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -331,10 +331,8 @@ is notified each time those events are dispatched.
331331

332332
Another way to listen to events is via an *event subscriber*. An event
333333
subscriber is a PHP class that's able to tell the dispatcher exactly which
334-
events it should subscribe to. It implements the
335-
:class:`Symfony\\Component\\EventDispatcher\\EventSubscriberInterface`
336-
interface, which requires a single static method called
337-
:method:`Symfony\\Component\\EventDispatcher\\EventSubscriberInterface::getSubscribedEvents`.
334+
events it should subscribe to. It implements the :class:`Symfony\\Component\\EventDispatcher\\EventSubscriberInterface`
335+
interface, which requires a single static method called :method:`Symfony\\Component\\EventDispatcher\\EventSubscriberInterface::getSubscribedEvents`.
338336
Take the following example of a subscriber that subscribes to the
339337
``kernel.response`` and ``order.placed`` events::
340338

0 commit comments

Comments
 (0)