Skip to content

Commit 53c8810

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: [Messenger] Fix typo
2 parents e0caa87 + 17e4ec5 commit 53c8810

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
@@ -2003,7 +2003,7 @@ Sometimes, you may need to regularly ping a webservice to get its status, e.g.
20032003
is it up or down. It is possible to do so by dispatching a
20042004
:class:`Symfony\\Component\\HttpClient\\Messenger\\PingWebhookMessage`::
20052005

2006-
use Symfony\Component\HttpClient\Messenger\RPingWebhookMessage;
2006+
use Symfony\Component\HttpClient\Messenger\PingWebhookMessage;
20072007
use Symfony\Component\Messenger\MessageBusInterface;
20082008

20092009
class LivenessService
@@ -2015,10 +2015,10 @@ is it up or down. It is possible to do so by dispatching a
20152015
public function ping(): void
20162016
{
20172017
// An HttpExceptionInterface is thrown on 3xx/4xx/5xx
2018-
$this->bus->dispatch(new PingWebhookMessage('GET', 'https://example.com/status');
2018+
$this->bus->dispatch(new PingWebhookMessage('GET', 'https://example.com/status'));
20192019

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

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

0 commit comments

Comments
 (0)