Skip to content

Commit 6f79ffb

Browse files
authored
Add a tip about using make:messenger-middleware
Add a tip about using make:messenger-middleware to create custom Middlewares, because it's easy to skip the importance of the "$stack->next()->handle($envelope, $stack)" line. Might save someone's time.
1 parent 89861bf commit 6f79ffb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

messenger.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2836,6 +2836,11 @@ and a different instance will be created per bus.
28362836
$bus->middleware()->id('App\Middleware\AnotherMiddleware');
28372837
};
28382838
2839+
.. tip::
2840+
2841+
If you have installed the :doc:`Maker bundle </bundles/SymfonyMakerBundle>`, you can use
2842+
the ``make:messenger-middleware`` command to bootstrap the creation your own messenger middleware.
2843+
28392844
.. _middleware-doctrine:
28402845

28412846
Middleware for Doctrine

0 commit comments

Comments
 (0)