|
@@ 71-84 (lines=14) @@
|
| 68 |
|
); |
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
public function bind(FrameChannel $channel, Binding $command): Frame |
| 72 |
|
{ |
| 73 |
|
return new Frame( |
| 74 |
|
Type::method(), |
| 75 |
|
$channel, |
| 76 |
|
Methods::get('queue.bind'), |
| 77 |
|
new UnsignedShortInteger(new Integer(0)), //ticket (reserved) |
| 78 |
|
new ShortString(new Str($command->queue())), |
| 79 |
|
new ShortString(new Str($command->exchange())), |
| 80 |
|
new ShortString(new Str($command->routingKey())), |
| 81 |
|
new Bits(!$command->shouldWait()), |
| 82 |
|
new Table(new Map('string', Value::class)) //todo: use $command->arguments() |
| 83 |
|
); |
| 84 |
|
} |
| 85 |
|
|
| 86 |
|
public function unbind(FrameChannel $channel, Unbinding $command): Frame |
| 87 |
|
{ |
|
@@ 86-98 (lines=13) @@
|
| 83 |
|
); |
| 84 |
|
} |
| 85 |
|
|
| 86 |
|
public function unbind(FrameChannel $channel, Unbinding $command): Frame |
| 87 |
|
{ |
| 88 |
|
return new Frame( |
| 89 |
|
Type::method(), |
| 90 |
|
$channel, |
| 91 |
|
Methods::get('queue.unbind'), |
| 92 |
|
new UnsignedShortInteger(new Integer(0)), //ticket (reserved) |
| 93 |
|
new ShortString(new Str($command->queue())), |
| 94 |
|
new ShortString(new Str($command->exchange())), |
| 95 |
|
new ShortString(new Str($command->routingKey())), |
| 96 |
|
new Table(new Map('string', Value::class)) //todo: use $command->arguments() |
| 97 |
|
); |
| 98 |
|
} |
| 99 |
|
|
| 100 |
|
public function purge(FrameChannel $channel, Purge $command): Frame |
| 101 |
|
{ |