Skip to content

Commit 5003df7

Browse files
authored
Merge pull request #194 from Optimy/amqp-ext-ns-fix
fixed NS
2 parents 11c5ec8 + 2293618 commit 5003df7

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

Diff for: pkg/amqp-ext/Flags.php

+17-17
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
namespace Enqueue\AmqpExt;
44

5-
use Interop\Amqp\AmqpConsumer;
6-
use Interop\Amqp\AmqpDestination;
7-
use Interop\Amqp\AmqpMessage;
8-
use Interop\Amqp\AmqpQueue;
9-
use Interop\Amqp\AmqpTopic;
5+
use Interop\Amqp\AmqpConsumer as InteropAmqpConsumer;
6+
use Interop\Amqp\AmqpDestination as InteropAmqpDestination;
7+
use Interop\Amqp\AmqpMessage as InteropAmqpMessage;
8+
use Interop\Amqp\AmqpQueue as InteropAmqpQueue;
9+
use Interop\Amqp\AmqpTopic as InteropAmqpTopic;
1010

1111
class Flags
1212
{
@@ -19,11 +19,11 @@ public static function convertMessageFlags($interop)
1919
{
2020
$flags = AMQP_NOPARAM;
2121

22-
if ($interop & AmqpMessage::FLAG_MANDATORY) {
22+
if ($interop & InteropAmqpMessage::FLAG_MANDATORY) {
2323
$flags |= AMQP_MANDATORY;
2424
}
2525

26-
if ($interop & AmqpMessage::FLAG_IMMEDIATE) {
26+
if ($interop & InteropAmqpMessage::FLAG_IMMEDIATE) {
2727
$flags |= AMQP_IMMEDIATE;
2828
}
2929

@@ -41,7 +41,7 @@ public static function convertTopicFlags($interop)
4141

4242
$flags |= static::convertDestinationFlags($interop);
4343

44-
if ($interop & AmqpTopic::FLAG_INTERNAL) {
44+
if ($interop & InteropAmqpTopic::FLAG_INTERNAL) {
4545
$flags |= AMQP_INTERNAL;
4646
}
4747

@@ -59,7 +59,7 @@ public static function convertQueueFlags($interop)
5959

6060
$flags |= static::convertDestinationFlags($interop);
6161

62-
if ($interop & AmqpQueue::FLAG_EXCLUSIVE) {
62+
if ($interop & InteropAmqpQueue::FLAG_EXCLUSIVE) {
6363
$flags |= AMQP_EXCLUSIVE;
6464
}
6565

@@ -75,19 +75,19 @@ public static function convertDestinationFlags($interop)
7575
{
7676
$flags = AMQP_NOPARAM;
7777

78-
if ($interop & AmqpDestination::FLAG_PASSIVE) {
78+
if ($interop & InteropAmqpDestination::FLAG_PASSIVE) {
7979
$flags |= AMQP_PASSIVE;
8080
}
8181

82-
if ($interop & AmqpDestination::FLAG_DURABLE) {
82+
if ($interop & InteropAmqpDestination::FLAG_DURABLE) {
8383
$flags |= AMQP_DURABLE;
8484
}
8585

86-
if ($interop & AmqpDestination::FLAG_AUTODELETE) {
86+
if ($interop & InteropAmqpDestination::FLAG_AUTODELETE) {
8787
$flags |= AMQP_AUTODELETE;
8888
}
8989

90-
if ($interop & AmqpDestination::FLAG_NOWAIT) {
90+
if ($interop & InteropAmqpDestination::FLAG_NOWAIT) {
9191
$flags |= AMQP_NOWAIT;
9292
}
9393

@@ -103,19 +103,19 @@ public static function convertConsumerFlags($interop)
103103
{
104104
$flags = AMQP_NOPARAM;
105105

106-
if ($interop & AmqpConsumer::FLAG_NOLOCAL) {
106+
if ($interop & InteropAmqpConsumer::FLAG_NOLOCAL) {
107107
$flags |= AMQP_NOLOCAL;
108108
}
109109

110-
if ($interop & AmqpConsumer::FLAG_NOACK) {
110+
if ($interop & InteropAmqpConsumer::FLAG_NOACK) {
111111
$flags |= AMQP_AUTOACK;
112112
}
113113

114-
if ($interop & AmqpConsumer::FLAG_EXCLUSIVE) {
114+
if ($interop & InteropAmqpConsumer::FLAG_EXCLUSIVE) {
115115
$flags |= AMQP_EXCLUSIVE;
116116
}
117117

118-
if ($interop & AmqpConsumer::FLAG_NOWAIT) {
118+
if ($interop & InteropAmqpConsumer::FLAG_NOWAIT) {
119119
$flags |= AMQP_NOWAIT;
120120
}
121121

0 commit comments

Comments
 (0)