Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2d41976

Browse filesBrowse files
author
Robin Chalas
committed
[Messenger] Lowercased method calls on \Redis
1 parent 90326e6 commit 2d41976
Copy full SHA for 2d41976

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed

‎src/Symfony/Component/Messenger/Transport/RedisExt/Connection.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Messenger/Transport/RedisExt/Connection.php
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.