We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23ff699 commit 3b7a46dCopy full SHA for 3b7a46d
src/Controller/BlogController.php
@@ -123,6 +123,9 @@ public function commentNew(
123
// passed in the event and they can even modify the execution flow, so
124
// there's no guarantee that the rest of this controller will be executed.
125
// 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.
128
+ // See https://symfony.com/doc/current/messenger.html
129
$eventDispatcher->dispatch(new CommentCreatedEvent($comment));
130
131
return $this->redirectToRoute('blog_post', ['slug' => $post->getSlug()]);
0 commit comments