File tree Expand file tree Collapse file tree 5 files changed +10
-30
lines changed Expand file tree Collapse file tree 5 files changed +10
-30
lines changed Original file line number Diff line number Diff line change 1
1
Yii2 Queue Extension Change Log
2
2
===============================
3
3
4
- 2.3.6 under development
4
+ 3.0.0 under development
5
5
-----------------------
6
6
7
7
- Enh #372 : Add ability to configure keepalive and heartbeat for AMQP and AMQP interop (vyachin)
8
+ - Enh #464 : Delete property ` maxPriority ` (skolkin-worker)
8
9
9
10
10
11
2.3.5 November 18, 2022
Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ Upgrading Instructions
4
4
This file contains the upgrade notes. These notes highlight changes that could break your
5
5
application when you upgrade the package from one version to another.
6
6
7
+ Upgrade to 3.0.0
8
+ ----------------
9
+
10
+ * The ` maxPriority ` property was removed from [ amqp_interop] ( docs/guide/driver-amqp-interop.md ) .
11
+ Use property ` queueOptionalArguments ` argument ` x-max-priority ` .
12
+
7
13
Upgrade to 2.1.1
8
14
----------------
9
15
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -227,12 +227,6 @@ class Queue extends CliQueue
227
227
* @var string
228
228
*/
229
229
public $ driver = self ::ENQUEUE_AMQP_LIB ;
230
- /**
231
- * This property should be an integer indicating the maximum priority the queue should support. Default is 10.
232
- *
233
- * @var int
234
- */
235
- public $ maxPriority = 10 ;
236
230
/**
237
231
* The property contains a command class which used in cli.
238
232
*
@@ -458,10 +452,7 @@ protected function setupBroker()
458
452
459
453
$ queue = $ this ->context ->createQueue ($ this ->queueName );
460
454
$ queue ->setFlags ($ this ->queueFlags );
461
- $ queue ->setArguments (array_merge (
462
- ['x-max-priority ' => $ this ->maxPriority ],
463
- $ this ->queueOptionalArguments
464
- ));
455
+ $ queue ->setArguments ($ this ->queueOptionalArguments );
465
456
$ this ->context ->declareQueue ($ queue );
466
457
467
458
$ topic = $ this ->context ->createTopic ($ this ->exchangeName );
Original file line number Diff line number Diff line change 94
94
'host ' => getenv ('RABBITMQ_HOST ' ) ?: 'localhost ' ,
95
95
'user ' => getenv ('RABBITMQ_USER ' ) ?: 'guest ' ,
96
96
'password ' => getenv ('RABBITMQ_PASSWORD ' ) ?: 'guest ' ,
97
+ 'queueOptionalArguments ' => ['x-max-priority ' => 10 ],
97
98
'queueName ' => 'queue-interop ' ,
98
99
'exchangeName ' => 'exchange-interop ' ,
99
100
],
You can’t perform that action at this time.
0 commit comments