-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Messenger] Add a tip about using make:messenger-middleware
#20337
Conversation
@@ -2836,6 +2836,11 @@ and a different instance will be created per bus. | |||
$bus->middleware()->id('App\Middleware\AnotherMiddleware'); | |||
}; | |||
|
|||
.. tip:: | |||
|
|||
If you have installed the Maker bundle, you can use the ``make:messenger-middleware`` command |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you have installed the Maker bundle, you can use the ``make:messenger-middleware`` command | |
If you have installed the MakerBundle, you can use the ``make:messenger-middleware`` command |
Cosmetic but I have the impression to see it written this way most of the time in documentation
And we may can add link to bundle documentation too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't find a way to link to the bundle documentation (see first commit). So I checked some other pages and often there was no link to the bundles pages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done this change while merging. Thanks!
make:messenger-middleware
make:messenger-middleware
make:messenger-middleware
703d04b
to
9f26f64
Compare
@alsciende thanks for your contribution. This was finally merged! |
* 7.2: [#20337] fix typo Replace left over "annotation" by "attribute"
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.