PHP Class Knp\Bundle\KnpBundlesBundle\Producer\ExecutorProducer

This producer will not send anything to rabbitmq but will execute instantly the consumer
Inheritance: implements Knp\Bundle\KnpBundlesBundle\Producer\ProducerInterface
Show file Open project: KnpLabs/KnpBundles Class Usage Examples

Public Methods

Method Description
__construct ( OldSound\RabbitMqBundle\RabbitMq\ConsumerInterface $consumer )
publish ( $msgBody, $routingKey = '' )

Method Details

__construct() public method

public __construct ( OldSound\RabbitMqBundle\RabbitMq\ConsumerInterface $consumer )
$consumer OldSound\RabbitMqBundle\RabbitMq\ConsumerInterface

publish() public method

public publish ( $msgBody, $routingKey = '' )