AMQPExchange
PHP Manual

AMQPExchange::bind

(PECL amqp >= Unknown)

AMQPExchange::bindThe bind purpose

说明

public bool AMQPExchange::bind ( string $queue_name , string $routing_key )

Bind an exchange to a queue using the specified routing key.

参数

queue_name

The name of the queue to which to bind.

routing_key

The routing key to use as a binding.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE.

错误/异常

Throws AMQPExchangeException on failure.


AMQPExchange
PHP Manual