From beb150886567903d5dce266d375c2ee8b2e678d2 Mon Sep 17 00:00:00 2001 From: TR Date: Sun, 16 Sep 2012 16:47:43 +0200 Subject: [PATCH] Update components/event_dispatcher/introduction.rst s / isStoppedPropagation / isPropagationStopped() --- components/event_dispatcher/introduction.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/event_dispatcher/introduction.rst b/components/event_dispatcher/introduction.rst index 7f8e95c9a2a..0330e318569 100644 --- a/components/event_dispatcher/introduction.rst +++ b/components/event_dispatcher/introduction.rst @@ -419,11 +419,11 @@ Now, any listeners to ``store.order`` that have not yet been called will *not* be called. It is possible to detect if an event was stopped by using the -:method:`Symfony\\Component\\EventDispatcher\\Event::isStoppedPropagation` method +:method:`Symfony\\Component\\EventDispatcher\\Event::isPropagationStopped` method which returns a boolean value:: $dispatcher->dispatch('foo.event', $event); - if ($event->isStoppedPropagation()) { + if ($event->isPropagationStopped()) { // ... } @@ -547,7 +547,7 @@ Moreover, the EventDispatcher always returns whichever event object that was dispatched, i.e. either the event that was passed or the event that was created internally by the dispatcher. This allows for nice shortcuts:: - if (!$dispatcher->dispatch('foo.event')->isStoppedPropagation()) { + if (!$dispatcher->dispatch('foo.event')->isPropagationStopped()) { // ... }