Skip to content

Commit 909367e

Browse files
committed
Merge branch '7.0' into 7.1
* 7.0: [Messenger] Fix typo
2 parents 17663e2 + 53c8810 commit 909367e

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

2022-
use Symfony\Component\HttpClient\Messenger\RPingWebhookMessage;
2022+
use Symfony\Component\HttpClient\Messenger\PingWebhookMessage;
20232023
use Symfony\Component\Messenger\MessageBusInterface;
20242024

20252025
class LivenessService
@@ -2031,10 +2031,10 @@ is it up or down. It is possible to do so by dispatching a
20312031
public function ping(): void
20322032
{
20332033
// An HttpExceptionInterface is thrown on 3xx/4xx/5xx
2034-
$this->bus->dispatch(new PingWebhookMessage('GET', 'https://example.com/status');
2034+
$this->bus->dispatch(new PingWebhookMessage('GET', 'https://example.com/status'));
20352035

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

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

0 commit comments

Comments
 (0)