Skip to content

Commit 2a08cb1

Browse files
committed
Added upgrade instructions
1 parent 10c2bae commit 2a08cb1

File tree

1 file changed

+89
-0
lines changed

1 file changed

+89
-0
lines changed

Diff for: UPGRADE.md

+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
#Upgrading Enqueue:
2+
3+
From `0.8.x` to `0.9.x`:
4+
5+
##Processor declaration
6+
7+
`Interop\Queue\PsrProcessor` interface has been replaced by `Interop\Queue\Processor`
8+
`Interop\Queue\PsrMessage` interface has been replaced by `Interop\Queue\Message`
9+
`Interop\Queue\PsrContext` interface has been replaced by `Interop\Queue\Context`
10+
11+
12+
13+
##Symfony Bundle
14+
15+
###Configuration changes:
16+
17+
`0.8.x`
18+
19+
20+
```
21+
enqueue:
22+
transport:
23+
default: ...
24+
```
25+
26+
`0.9.x`
27+
28+
29+
```
30+
enqueue:
31+
default:
32+
transport: ...
33+
```
34+
35+
In `0.9.x` the client name is a root config node.
36+
37+
The `default_processor_queue` Client option was removed.
38+
39+
###Service declarations:
40+
41+
`0.8.x`
42+
43+
44+
```
45+
tags:
46+
- { name: 'enqueue.client.processor' }
47+
```
48+
49+
`0.9.x`
50+
51+
52+
```
53+
tags:
54+
- { name: 'enqueue.command_subscriber' }
55+
- { name: 'enqueue.topic_subscriber' }
56+
- { name: 'enqueue.processor' }
57+
```
58+
59+
The tag to register message processors has changed and is now split into processor sub types.
60+
61+
###CommandSubscriberInterface `getSubscribedCommand`
62+
63+
64+
`0.8.x`
65+
66+
return `aCommandName` or
67+
```
68+
[
69+
'processorName' => 'aCommandName',
70+
'queueName' => 'a_client_queue_name',
71+
'queueNameHardcoded' => true,
72+
'exclusive' => true,
73+
]
74+
```
75+
76+
`0.9.x`
77+
78+
79+
return `aCommandName` or
80+
```
81+
[
82+
'command' => 'aSubscribedCommand',
83+
'processor' => 'aProcessorName',
84+
'queue' => 'a_client_queue_name',
85+
'prefix_queue' => true,
86+
'exclusive' => true,
87+
]
88+
```
89+

0 commit comments

Comments
 (0)