Skip to content

Commit 17e4ec5

Browse files
committed
minor #19345 [Messenger] Fix typo (pierredup)
This PR was squashed before being merged into the 6.4 branch. Discussion ---------- [Messenger] Fix typo <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- 76c29de [Messenger] Fix typo
2 parents 44afd23 + 76c29de commit 17e4ec5

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)