src/RabbitMQPublisher.php
public function publish($message)
    {
        $serializedMessage = $this->serializer->wrapAndSerialize($message);
        $routingKey = $this->routingKeyResolver->resolveRoutingKeyFor($message);
        $additionalProperties = $this->additionalPropertiesResolver->resolveAdditionalPropertiesFor($message);

        $this->producer->publish($serializedMessage, $routingKey, $additionalProperties);
    }
public function publish($message)
    {
        $serializedMessage = $this->serializer->wrapAndSerialize($message);
        $routingKey = $this->routingKeyResolver->resolveRoutingKeyFor($message);
        $additionalProperties = $this->additionalPropertiesResolver->resolveAdditionalPropertiesFor($message);

        $this->producer->publish($serializedMessage, $routingKey, $additionalProperties);
    }
public function publish ( $ message ) { $ serializedMessage = $ this -> serializer -> wrapAndSerialize ( $ message ) ; $ routingKey = $ this -> routingKeyResolver -> resolveRoutingKeyFor ( $ message ) ; $ additionalProperties = $ this -> additionalPropertiesResolver -> resolveAdditionalPropertiesFor ( $ message ) ; $ this -> producer -> publish ( $ serializedMessage , $ routingKey , $ additionalProperties ) ; }
Publish the given Message by serializing it and handing it over to a RabbitMQ producer

@{inheritdoc}
Publish the given Message by serializing it and handing it over to a RabbitMQ producer