Skip to content

Commit e03808c

Browse files
g@8vue.comweaverryan
authored andcommitted
Update components/event_dispatcher/introduction.rst
s / isStoppedPropagation / isPropagationStopped()
1 parent a33a9c6 commit e03808c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/event_dispatcher/introduction.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -419,11 +419,11 @@ Now, any listeners to ``store.order`` that have not yet been called will *not*
419419
be called.
420420

421421
It is possible to detect if an event was stopped by using the
422-
:method:`Symfony\\Component\\EventDispatcher\\Event::isStoppedPropagation` method
422+
:method:`Symfony\\Component\\EventDispatcher\\Event::isPropagationStopped` method
423423
which returns a boolean value::
424424

425425
$dispatcher->dispatch('foo.event', $event);
426-
if ($event->isStoppedPropagation()) {
426+
if ($event->isPropagationStopped()) {
427427
// ...
428428
}
429429

@@ -547,7 +547,7 @@ Moreover, the EventDispatcher always returns whichever event object that was
547547
dispatched, i.e. either the event that was passed or the event that was
548548
created internally by the dispatcher. This allows for nice shortcuts::
549549

550-
if (!$dispatcher->dispatch('foo.event')->isStoppedPropagation()) {
550+
if (!$dispatcher->dispatch('foo.event')->isPropagationStopped()) {
551551
// ...
552552
}
553553

0 commit comments

Comments
 (0)