public function acknowledge(AMQPMessage $message)
    {
        $message->delivery_info['channel']->basic_ack($message->delivery_info['delivery_tag']);

        if ($message->body === 'quit') {
            $message->delivery_info['channel']->basic_cancel($message->delivery_info['consumer_tag']);
        }
    }
public function acknowledge(AMQPMessage $message)
    {
        $message->delivery_info['channel']->basic_ack($message->delivery_info['delivery_tag']);

        if ($message->body === 'quit') {
            $message->delivery_info['channel']->basic_cancel($message->delivery_info['consumer_tag']);
        }
    }
public function acknowledge ( AMQPMessage $ message ) { $ message -> delivery_info [ 'channel' ] -> basic_ack ( $ message -> delivery_info [ 'delivery_tag' ] ) ; if ( $ message -> body === 'quit' ) { $ message -> delivery_info [ 'channel' ] -> basic_cancel ( $ message -> delivery_info [ 'consumer_tag' ] ) ; } }
Acknowledges a message

@param AMQPMessage $message
Acknowledges a message