From 7bf2aae999a3e369b4dabb5d3205aaac2fe0f8d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Br=C3=BCchner?= Date: Wed, 18 Oct 2023 15:57:24 +0200 Subject: [PATCH 1/3] Update event_dispatcher.rst Adding a space before deep links. --- components/event_dispatcher.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/event_dispatcher.rst b/components/event_dispatcher.rst index 9d33ec6869e..28667b06555 100644 --- a/components/event_dispatcher.rst +++ b/components/event_dispatcher.rst @@ -331,9 +331,9 @@ is notified each time those events are dispatched. Another way to listen to events is via an *event subscriber*. An event subscriber is a PHP class that's able to tell the dispatcher exactly which -events it should subscribe to. It implements the +events it should subscribe to. It implements the :class:`Symfony\\Component\\EventDispatcher\\EventSubscriberInterface` -interface, which requires a single static method called +interface, which requires a single static method called :method:`Symfony\\Component\\EventDispatcher\\EventSubscriberInterface::getSubscribedEvents`. Take the following example of a subscriber that subscribes to the ``kernel.response`` and ``order.placed`` events:: @@ -408,7 +408,7 @@ In some cases, it may make sense for a listener to prevent any other listeners from being called. In other words, the listener needs to be able to tell the dispatcher to stop all propagation of the event to future listeners (i.e. to not notify any more listeners). This can be accomplished from -inside a listener via the +inside a listener via the :method:`Symfony\\Contracts\\EventDispatcher\\Event::stopPropagation` method:: use Acme\Store\Event\OrderPlacedEvent; From b1d0bdf2e4b1502a1132bc80e9fbe16ac7f40f20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Br=C3=BCchner?= Date: Wed, 18 Oct 2023 16:10:36 +0200 Subject: [PATCH 2/3] Update event_dispatcher.rst Trying to get rid of wrong bot note. --- components/event_dispatcher.rst | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/components/event_dispatcher.rst b/components/event_dispatcher.rst index 28667b06555..8c5ccd0ec09 100644 --- a/components/event_dispatcher.rst +++ b/components/event_dispatcher.rst @@ -331,10 +331,8 @@ is notified each time those events are dispatched. Another way to listen to events is via an *event subscriber*. An event subscriber is a PHP class that's able to tell the dispatcher exactly which -events it should subscribe to. It implements the -:class:`Symfony\\Component\\EventDispatcher\\EventSubscriberInterface` -interface, which requires a single static method called -:method:`Symfony\\Component\\EventDispatcher\\EventSubscriberInterface::getSubscribedEvents`. +events it should subscribe to. It implements the :class:`Symfony\\Component\\EventDispatcher\\EventSubscriberInterface` +interface, which requires a single static method called :method:`Symfony\\Component\\EventDispatcher\\EventSubscriberInterface::getSubscribedEvents`. Take the following example of a subscriber that subscribes to the ``kernel.response`` and ``order.placed`` events:: From bce2b9f88fdda51c0343b4479748e47cbc3ac3b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Br=C3=BCchner?= Date: Wed, 18 Oct 2023 17:00:00 +0200 Subject: [PATCH 3/3] Update event_dispatcher.rst Remove line break to avoid issue with necessary space before a deep link. --- components/event_dispatcher.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/event_dispatcher.rst b/components/event_dispatcher.rst index 8c5ccd0ec09..8130572ca9c 100644 --- a/components/event_dispatcher.rst +++ b/components/event_dispatcher.rst @@ -406,8 +406,7 @@ In some cases, it may make sense for a listener to prevent any other listeners from being called. In other words, the listener needs to be able to tell the dispatcher to stop all propagation of the event to future listeners (i.e. to not notify any more listeners). This can be accomplished from -inside a listener via the -:method:`Symfony\\Contracts\\EventDispatcher\\Event::stopPropagation` method:: +inside a listener via the :method:`Symfony\\Contracts\\EventDispatcher\\Event::stopPropagation` method:: use Acme\Store\Event\OrderPlacedEvent;