Skip to content

Commit a3e22b2

Browse files
committed
Minor tweak
1 parent c9494ec commit a3e22b2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Controller/BlogController.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,9 @@ public function commentNew(
123123
// passed in the event and they can even modify the execution flow, so
124124
// there's no guarantee that the rest of this controller will be executed.
125125
// See https://symfony.com/doc/current/components/event_dispatcher.html
126-
// You can also leverage the Symfony Messenger component if you need
127-
// some asynchronous operations.
126+
//
127+
// If you prefer to process comments asynchronously (e.g. to perform some
128+
// heavy tasks on them) you can use the Symfony Messenger component.
128129
// See https://symfony.com/doc/current/messenger.html
129130
$eventDispatcher->dispatch(new CommentCreatedEvent($comment));
130131

0 commit comments

Comments
 (0)