Skip to content

Commit

Permalink
Minor tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Nov 2, 2023
1 parent c9494ec commit a3e22b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Controller/BlogController.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,9 @@ public function commentNew(
// passed in the event and they can even modify the execution flow, so
// there's no guarantee that the rest of this controller will be executed.
// See https://symfony.com/doc/current/components/event_dispatcher.html
// You can also leverage the Symfony Messenger component if you need
// some asynchronous operations.
//
// If you prefer to process comments asynchronously (e.g. to perform some
// heavy tasks on them) you can use the Symfony Messenger component.
// See https://symfony.com/doc/current/messenger.html
$eventDispatcher->dispatch(new CommentCreatedEvent($comment));

Expand Down

0 comments on commit a3e22b2

Please sign in to comment.