@@ -79,7 +79,7 @@ public function get(): ?array
79
79
80
80
$ e = null ;
81
81
try {
82
- $ messages = $ this ->connection ->xReadGroup (
82
+ $ messages = $ this ->connection ->xreadgroup (
83
83
$ this ->group ,
84
84
$ this ->consumer ,
85
85
[$ this ->stream => $ messageId ],
@@ -119,7 +119,7 @@ public function ack(string $id): void
119
119
{
120
120
$ e = null ;
121
121
try {
122
- $ acknowledged = $ this ->connection ->xAck ($ this ->stream , $ this ->group , [$ id ]);
122
+ $ acknowledged = $ this ->connection ->xack ($ this ->stream , $ this ->group , [$ id ]);
123
123
} catch (\RedisException $ e ) {
124
124
}
125
125
@@ -132,7 +132,7 @@ public function reject(string $id): void
132
132
{
133
133
$ e = null ;
134
134
try {
135
- $ deleted = $ this ->connection ->xDel ($ this ->stream , [$ id ]);
135
+ $ deleted = $ this ->connection ->xdel ($ this ->stream , [$ id ]);
136
136
} catch (\RedisException $ e ) {
137
137
}
138
138
@@ -145,7 +145,7 @@ public function add(string $body, array $headers)
145
145
{
146
146
$ e = null ;
147
147
try {
148
- $ added = $ this ->connection ->xAdd ($ this ->stream , '* ' , ['message ' => json_encode (
148
+ $ added = $ this ->connection ->xadd ($ this ->stream , '* ' , ['message ' => json_encode (
149
149
['body ' => $ body , 'headers ' => $ headers ]
150
150
)]);
151
151
} catch (\RedisException $ e ) {
@@ -159,7 +159,7 @@ public function add(string $body, array $headers)
159
159
public function setup (): void
160
160
{
161
161
try {
162
- $ this ->connection ->xGroup ('CREATE ' , $ this ->stream , $ this ->group , 0 , true );
162
+ $ this ->connection ->xgroup ('CREATE ' , $ this ->stream , $ this ->group , 0 , true );
163
163
} catch (\RedisException $ e ) {
164
164
throw new TransportException ($ e ->getMessage (), 0 , $ e );
165
165
}
0 commit comments