src/MessageBus/PublishesPredefinedMessages.php
public function handle($message, callable $next)
    {
        $name = $this->messageNameResolver->resolve($message);
        if (in_array($name, $this->names)) {
            $this->publisher->publish($message);
        }

        $next($message);
    }
public function handle($message, callable $next)
    {
        $name = $this->messageNameResolver->resolve($message);
        if (in_array($name, $this->names)) {
            $this->publisher->publish($message);
        }

        $next($message);
    }
Handle a message by publishing it to a queue (always), then calling the next middleware

{@inheritdoc}