php bin/console make:messenger-middleware

Creates a new messenger middleware

Usage

make:messenger-middleware [<name>]

Arguments

name   The name of the middleware class (e.g. <fg=yellow>CustomMiddleware</>) 

Help

The make:messenger-middleware command generates a new message class & handler.

php bin/console make:messenger-middleware EmailMessage

If the argument is missing, the command will ask for the message class interactively.