Skip to content

Commit 4a14459

Browse files
Declare is removed from the parameter list
1 parent 24b3f69 commit 4a14459

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ return [
8888
],
8989
];
9090
```
91-
To use this extension you should be familiar with the basic concepts of RabbitMQ. If you are not confident in your knowledge I suggest reading [this article](https://mikemadisonweb.github.io/2017/05/04/tldr-series-rabbitmq/).
91+
To use this extension you should be familiar with the basic concepts of RabbitMQ. If you are not confident in your knowledge I suggest reading [this article](https://mikemadisonweb.github.io/2017/05/03/tldr-series-rabbitmq/).
9292

9393
The 'callback' parameter can be a class name or a service name from [dependency injection container](http://www.yiiframework.com/doc-2.0/yii-di-container.html). Starting from Yii version 2.0.11 you can configure your container like this:
9494
```php
@@ -271,7 +271,6 @@ $rabbitmq_defaults = [
271271
'nowait' => false,
272272
'arguments' => null,
273273
'ticket' => null,
274-
'declare' => true,
275274
],
276275
],
277276
'queues' => [
@@ -284,7 +283,6 @@ $rabbitmq_defaults = [
284283
'nowait' => false,
285284
'arguments' => null,
286285
'ticket' => null,
287-
'declare' => true,
288286
],
289287
],
290288
'bindings' => [
@@ -336,7 +334,6 @@ parameter | required | type | default | comments
336334
--- | --- | --- | --- | ---
337335
name | yes | string | | The exchange name consists of a non-empty sequence of these characters: letters, digits, hyphen, underscore, period, or colon.
338336
type | yes | string | | Type of the exchange, possible values are `direct`, `fanout`, `topic` and `headers`.
339-
declare | no | boolean | true | Whether to declare an exchange on sending or consuming messages.
340337
passive | no | boolean | false | If set to true, the server will reply with Declare-Ok if the exchange already exists with the same name, and raise an error if not. The client can use this to check whether an exchange exists without modifying the server state. When set, all other method fields except name and no-wait are ignored. A declare with both passive and no-wait has no effect.
341338
durable | no | boolean | false | Durable exchanges remain active when a server restarts. Non-durable exchanges (transient exchanges) are purged if/when a server restarts.
342339
auto_delete | no | boolean | true | If set to true, the exchange would be deleted when no queues are bound to it anymore.
@@ -352,7 +349,6 @@ As for the queue declaration, all parameters are optional. Even if you do not pr
352349
parameter | required | type | default | comments
353350
--- | --- | --- | --- | ---
354351
name | no | string | '' | The queue name can be empty, or a sequence of these characters: letters, digits, hyphen, underscore, period, or colon.
355-
declare | no | boolean | true | Whether to declare a queue on sending or consuming messages.
356352
passive | no | boolean | false | If set to true, the server will reply with Declare-Ok if the queue already exists with the same name, and raise an error if not.
357353
durable | no | boolean | false | Durable queues remain active when a server restarts. Non-durable queues (transient queues) are purged if/when a server restarts.
358354
auto_delete | no | boolean | true | If set to true, the queue is deleted when all consumers have finished using it.

0 commit comments

Comments
 (0)