Skip to content

Commit 8c2b337

Browse files
committed
release version 2.0.2
1 parent befe900 commit 8c2b337

File tree

9 files changed

+16
-33
lines changed

9 files changed

+16
-33
lines changed

CHANGELOG.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
Yii2 Queue Extension Change Log
22
===============================
33

4-
2.0.2 under development
4+
2.0.2 December 26, 2018
55
-----------------------
66

7-
- Enh #158: Add Amqp Interop driver (makasim)
8-
- Bug #180: Fixed info command of file driver (victorruan)
97
- Bug #92: Resolve issue in debug panel (farmani-eigital)
10-
- Enh: Start and stop events of a worker (zhuravljov)
118
- Bug #99: Retry connecting after connection has timed out for redis driver (cebe)
9+
- Bug #180: Fixed info command of file driver (victorruan)
10+
- Enh #158: Add Amqp Interop driver (makasim)
1211
- Enh #185: Loop object instead of Signal helper (zhuravljov)
1312
- Enh #188: Configurable verbose mode (zhuravljov)
13+
- Enh: Start and stop events of a worker (zhuravljov)
14+
1415

1516
2.0.1 November 13, 2017
1617
-----------------------

src/cli/Command.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ abstract class Command extends Controller
4040
*/
4141
public $isolate = true;
4242

43+
4344
/**
4445
* @inheritdoc
4546
*/

src/cli/Queue.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ abstract class Queue extends BaseQueue implements BootstrapInterface
3131
* @since 2.0.2
3232
*/
3333
const EVENT_WORKER_STOP = 'workerStop';
34+
3435
/**
3536
* @var array|string
3637
* @since 2.0.2
@@ -49,12 +50,14 @@ abstract class Queue extends BaseQueue implements BootstrapInterface
4950
* @internal for worker command only
5051
*/
5152
public $messageHandler;
53+
5254
/**
5355
* @var int current process ID of a worker.
5456
* @since 2.0.2
5557
*/
5658
private $_workerPid;
5759

60+
5861
/**
5962
* @return string command id
6063
* @throws

src/cli/SignalLoop.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,12 @@ class SignalLoop extends BaseObject implements LoopInterface
3636
* For example: SIGCONT
3737
*/
3838
public $resumeSignals = [];
39+
3940
/**
4041
* @var Queue
4142
*/
4243
protected $queue;
44+
4345
/**
4446
* @var bool status when exit signal was got.
4547
*/
@@ -49,6 +51,7 @@ class SignalLoop extends BaseObject implements LoopInterface
4951
*/
5052
private static $pause = false;
5153

54+
5255
/**
5356
* @param Queue $queue
5457
* @inheritdoc

src/cli/VerboseBehavior.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class VerboseBehavior extends Behavior
2828
* @var Controller
2929
*/
3030
public $command;
31+
3132
/**
3233
* @var float timestamp
3334
*/

src/drivers/amqp/Command.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class Command extends CliCommand
2323
*/
2424
public $queue;
2525

26+
2627
/**
2728
* @inheritdoc
2829
*/

src/drivers/amqp/Queue.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ class Queue extends CliQueue
3131
public $queueName = 'queue';
3232
public $exchangeName = 'exchange';
3333
public $vhost = '/';
34-
3534
/**
3635
* @var string command class name
3736
*/
@@ -47,7 +46,6 @@ class Queue extends CliQueue
4746
protected $channel;
4847

4948

50-
5149
/**
5250
* @inheritdoc
5351
*/

src/drivers/amqp_interop/Command.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class Command extends CliCommand
2222
*/
2323
public $queue;
2424

25+
2526
/**
2627
* @inheritdoc
2728
*/

src/drivers/amqp_interop/Queue.php

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ class Queue extends CliQueue
3636
const TTR = 'yii-ttr';
3737
const DELAY = 'yii-delay';
3838
const PRIORITY = 'yii-priority';
39-
4039
const ENQUEUE_AMQP_LIB = 'enqueue/amqp-lib';
4140
const ENQUEUE_AMQP_EXT = 'enqueue/amqp-ext';
4241
const ENQUEUE_AMQP_BUNNY = 'enqueue/amqp-bunny';
@@ -48,169 +47,145 @@ class Queue extends CliQueue
4847
* @var string
4948
*/
5049
public $dsn;
51-
5250
/**
5351
* The message queue broker's host
5452
*
5553
* @var string|null
5654
*/
5755
public $host;
58-
5956
/**
6057
* The message queue broker's port
6158
*
6259
* @var string|null
6360
*/
6461
public $port;
65-
6662
/**
6763
* This is RabbitMQ user which is used to login on the broker
6864
*
6965
* @var string|null
7066
*/
7167
public $user;
72-
7368
/**
7469
* This is RabbitMQ password which is used to login on the broker
7570
*
7671
* @var string|null
7772
*/
7873
public $password;
79-
8074
/**
8175
* Virtual hosts provide logical grouping and separation of resources.
8276
*
8377
* @var string|null
8478
*/
8579
public $vhost;
86-
8780
/**
8881
* The time PHP socket waits for an information while reading. In seconds
8982
*
9083
* @var float|null
9184
*/
9285
public $readTimeout;
93-
9486
/**
9587
* The time PHP socket waits for an information while witting. In seconds
9688
*
9789
* @var float|null
9890
*/
9991
public $writeTimeout;
100-
10192
/**
10293
* The time RabbitMQ keeps the connection on idle. In seconds
10394
*
10495
* @var float|null
10596
*/
10697
public $connectionTimeout;
107-
10898
/**
10999
* The periods of time PHP pings the broker in order to prolong the connection timeout. In seconds
110100
*
111101
* @var float|null
112102
*/
113103
public $heartbeat;
114-
115104
/**
116105
* PHP uses one shared connection if set true
117106
*
118107
* @var bool|null
119108
*/
120109
public $persisted;
121-
122110
/**
123111
* The connection will be established as later as possible if set true
124112
*
125113
* @var bool|null
126114
*/
127115
public $lazy;
128-
129116
/**
130117
* If false prefetch_count option applied separately to each new consumer on the channel
131118
* If true prefetch_count option shared across all consumers on the channel
132119
*
133120
* @var bool|null
134121
*/
135122
public $qosGlobal;
136-
137123
/**
138124
* Defines number of message pre-fetched in advance on a channel basis.
139125
*
140126
* @var int|null
141127
*/
142128
public $qosPrefetchSize;
143-
144129
/**
145130
* Defines number of message pre-fetched in advance per consumer.
146131
*
147132
* @var int|null
148133
*/
149134
public $qosPrefetchCount;
150-
151135
/**
152136
* Defines whether secure connection should be used or not
153137
*
154138
* @var bool|null
155139
*/
156140
public $sslOn;
157-
158141
/**
159142
* Require verification of SSL certificate used.
160143
*
161144
* @var bool|null
162145
*/
163146
public $sslVerify;
164-
165147
/**
166148
* Location of Certificate Authority file on local filesystem which should be used with the verify_peer context option to authenticate the identity of the remote peer.
167149
*
168150
* @var string|null
169151
*/
170152
public $sslCacert;
171-
172153
/**
173154
* Path to local certificate file on filesystem.
174155
*
175156
* @var string|null
176157
*/
177158
public $sslCert;
178-
179159
/**
180160
* Path to local private key file on filesystem in case of separate files for certificate (local_cert) and private key.
181161
*
182162
* @var string|null
183163
*/
184164
public $sslKey;
185-
186165
/**
187166
* The queue used to consume messages from
188167
*
189168
* @var string
190169
*/
191170
public $queueName = 'interop_queue';
192-
193171
/**
194172
* The exchange used to publish messages to
195173
*
196174
* @var string
197175
*/
198176
public $exchangeName = 'exchange';
199-
200177
/**
201178
* Defines the amqp interop transport being internally used. Currently supports lib, ext and bunny values
202179
*
203180
* @var string
204181
*/
205182
public $driver = self::ENQUEUE_AMQP_LIB;
206-
207183
/**
208184
* This property should be an integer indicating the maximum priority the queue should support. Default is 10
209185
*
210186
* @var int
211187
*/
212188
public $maxPriority = 10;
213-
214189
/**
215190
* The property contains a command class which used in cli.
216191
*
@@ -224,14 +199,12 @@ class Queue extends CliQueue
224199
* @var AmqpContext
225200
*/
226201
protected $context;
227-
228202
/**
229203
* List of supported amqp interop drivers
230204
*
231205
* @var string[]
232206
*/
233207
protected $supportedDrivers = [self::ENQUEUE_AMQP_LIB, self::ENQUEUE_AMQP_EXT, self::ENQUEUE_AMQP_BUNNY];
234-
235208
/**
236209
* The property tells whether the setupBroker method was called or not.
237210
* Having it we can do broker setup only once per process.
@@ -240,6 +213,7 @@ class Queue extends CliQueue
240213
*/
241214
protected $setupBrokerDone = false;
242215

216+
243217
/**
244218
* @inheritdoc
245219
*/

0 commit comments

Comments
 (0)