Skip to content

Commit 16d19bd

Browse files
committed
minor #14601 [EventDispatcher] Update event_dispatcher.rst (concilioinvest)
This PR was merged into the 4.4 branch. Discussion ---------- [EventDispatcher] Update event_dispatcher.rst It must be the `tag` method. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `5.x` for features of unreleased versions). --> Commits ------- 17f9fbf Update event_dispatcher.rst
2 parents fbdcc40 + 17f9fbf commit 16d19bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

event_dispatcher.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ using a special "tag":
109109
use App\EventListener\ExceptionListener;
110110
111111
$container->register(ExceptionListener::class)
112-
->addTag('kernel.event_listener', ['event' => 'kernel.exception'])
112+
->tag('kernel.event_listener', ['event' => 'kernel.exception'])
113113
;
114114
115115
Symfony follows this logic to decide which method to call inside the event

0 commit comments

Comments
 (0)