Skip to content

Commit 86066ca

Browse files
committed
minor #13162 Update messenger.rst (abdounikarim)
This PR was submitted for the 5.0 branch but it was merged into the 4.4 branch instead. Discussion ---------- Update messenger.rst I remove the flex alias (according to the other docs page). I add the namespace and file localisation. Commits ------- fdad649 Update messenger.rst
2 parents f7b5f32 + fdad649 commit 86066ca

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

messenger.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ install messenger:
1717

1818
.. code-block:: terminal
1919
20-
$ composer require messenger
20+
$ composer require symfony/messenger
2121
2222
Creating a Message & Handler
2323
----------------------------
@@ -321,6 +321,9 @@ If you need to pass a Doctrine entity in a message, it's better to pass the enti
321321
primary key (or whatever relevant information the handler actually needs, like ``email``,
322322
etc) instead of the object::
323323

324+
// src/Message/NewUserWelcomeEmail.php
325+
namespace App\Message;
326+
324327
class NewUserWelcomeEmail
325328
{
326329
private $userId;

0 commit comments

Comments
 (0)