send_message
middleware is responsible for sending your message to the configured transport and the handle_message
middleware will actually call your handlers for the given message.MiddlewareInterface
. This interface comes with a method handle
, which should always call the next middleware.framework.yaml
, we can define the middleware that this bus should use. To add middleware, we simply specify our custom middleware as follows: