Skip to content

Commit 9f7734b

Browse files
committed
minor #20337 [Messenger] Add a tip about using make:messenger-middleware (alsciende)
This PR was submitted for the 7.1 branch but it was squashed and merged into the 7.2 branch instead. Discussion ---------- [Messenger] 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. Commits ------- 9f26f64 [Messenger] Add a tip about using `make:messenger-middleware`
2 parents 1d199e1 + 9f26f64 commit 9f7734b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

messenger.rst

+5
Original file line numberDiff line numberDiff line change
@@ -2920,6 +2920,11 @@ and a different instance will be created per bus.
29202920
$bus->middleware()->id('App\Middleware\AnotherMiddleware');
29212921
};
29222922
2923+
.. tip::
2924+
2925+
If you have installed the Maker bundle, you can use the ``make:messenger-middleware`` command
2926+
to bootstrap the creation your own messenger middleware.
2927+
29232928
.. _middleware-doctrine:
29242929

29252930
Middleware for Doctrine

0 commit comments

Comments
 (0)