Skip to content

Commit 76c29de

Browse files
pierredupjaviereguiluz
authored andcommitted
[Messenger] Fix typo
1 parent 44afd23 commit 76c29de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

messenger.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2082,7 +2082,7 @@ Sometimes, you may need to regularly ping a webservice to get its status, e.g.
20822082
is it up or down. It is possible to do so by dispatching a
20832083
:class:`Symfony\\Component\\HttpClient\\Messenger\\PingWebhookMessage`::
20842084

2085-
use Symfony\Component\HttpClient\Messenger\RPingWebhookMessage;
2085+
use Symfony\Component\HttpClient\Messenger\PingWebhookMessage;
20862086
use Symfony\Component\Messenger\MessageBusInterface;
20872087

20882088
class LivenessService
@@ -2094,10 +2094,10 @@ is it up or down. It is possible to do so by dispatching a
20942094
public function ping(): void
20952095
{
20962096
// An HttpExceptionInterface is thrown on 3xx/4xx/5xx
2097-
$this->bus->dispatch(new PingWebhookMessage('GET', 'https://example.com/status');
2097+
$this->bus->dispatch(new PingWebhookMessage('GET', 'https://example.com/status'));
20982098

20992099
// Ping, but does not throw on 3xx/4xx/5xx
2100-
$this->bus->dispatch(new PingWebhookMessage('GET', 'https://example.com/status', throw: false);
2100+
$this->bus->dispatch(new PingWebhookMessage('GET', 'https://example.com/status', throw: false));
21012101

21022102
// Any valid HttpClientInterface option can be used
21032103
$this->bus->dispatch(new PingWebhookMessage('POST', 'https://example.com/status', [

0 commit comments

Comments
 (0)