Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit909367e

Browse files
committed
Merge branch '7.0' into 7.1
* 7.0: [Messenger] Fix typo
2 parents17663e2 +53c8810 commit909367e

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)

[8]ページ先頭

©2009-2025 Movatter.jp