@@ -79,7 +79,7 @@ public function get(): ?array
7979
8080 $ e = null ;
8181 try {
82- $ messages = $ this ->connection ->xReadGroup (
82+ $ messages = $ this ->connection ->xreadgroup (
8383 $ this ->group ,
8484 $ this ->consumer ,
8585 [$ this ->stream => $ messageId ],
@@ -119,7 +119,7 @@ public function ack(string $id): void
119119 {
120120 $ e = null ;
121121 try {
122- $ acknowledged = $ this ->connection ->xAck ($ this ->stream , $ this ->group , [$ id ]);
122+ $ acknowledged = $ this ->connection ->xack ($ this ->stream , $ this ->group , [$ id ]);
123123 } catch (\RedisException $ e ) {
124124 }
125125
@@ -132,7 +132,7 @@ public function reject(string $id): void
132132 {
133133 $ e = null ;
134134 try {
135- $ deleted = $ this ->connection ->xDel ($ this ->stream , [$ id ]);
135+ $ deleted = $ this ->connection ->xdel ($ this ->stream , [$ id ]);
136136 } catch (\RedisException $ e ) {
137137 }
138138
@@ -145,7 +145,7 @@ public function add(string $body, array $headers)
145145 {
146146 $ e = null ;
147147 try {
148- $ added = $ this ->connection ->xAdd ($ this ->stream , '* ' , ['message ' => json_encode (
148+ $ added = $ this ->connection ->xadd ($ this ->stream , '* ' , ['message ' => json_encode (
149149 ['body ' => $ body , 'headers ' => $ headers ]
150150 )]);
151151 } catch (\RedisException $ e ) {
@@ -159,7 +159,7 @@ public function add(string $body, array $headers)
159159 public function setup (): void
160160 {
161161 try {
162- $ this ->connection ->xGroup ('CREATE ' , $ this ->stream , $ this ->group , 0 , true );
162+ $ this ->connection ->xgroup ('CREATE ' , $ this ->stream , $ this ->group , 0 , true );
163163 } catch (\RedisException $ e ) {
164164 throw new TransportException ($ e ->getMessage (), 0 , $ e );
165165 }
0 commit comments