Skip to content

Commit bc6fdea

Browse files
committed
Merge branch '4.3' into 4.4
* 4.3: [Messenger] Use new TransportInterface Consistent bullet point endings
2 parents 1a839ce + 1910f04 commit bc6fdea

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

forms.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ possible paths:
400400

401401
#. When initially loading the page in a browser, the form hasn't been submitted
402402
yet and ``$form->isSubmitted()`` returns ``false``. So, the form is created
403-
and rendered.
403+
and rendered;
404404

405405
#. When the user submits the form, :method:`Symfony\\Component\\Form\\FormInterface::handleRequest`
406406
recognizes this and immediately writes the submitted data back into the
@@ -413,7 +413,7 @@ possible paths:
413413
written into the form, but this time :method:`Symfony\\Component\\Form\\FormInterface::isValid`
414414
returns ``true``. Now you have the opportunity to perform some actions using
415415
the ``$task`` object (e.g. persisting it to the database) before redirecting
416-
the user to some other page (e.g. a "thank you" or "success" page).
416+
the user to some other page (e.g. a "thank you" or "success" page);
417417

418418
.. note::
419419

messenger/custom-transport.rst

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,31 @@ DSN. You will need a transport factory::
2828
}
2929
}
3030

31-
The transport object needs to implement the ``TransportInterface`` (which simply combines
32-
the ``SenderInterface`` and ``ReceiverInterface``). It will look like this::
31+
The transport object needs to implement the
32+
:class:`Symfony\\Component\\Messenger\\Transport\\TransportInterface`
33+
(which combines the :class:`Symfony\\Component\\Messenger\\Transport\\Sender\\SenderInterface`
34+
and :class:`Symfony\\Component\\Messenger\\Transport\\Receiver\\ReceiverInterface`)::
35+
36+
use Symfony\Component\Messenger\Envelope;
3337

3438
class YourTransport implements TransportInterface
3539
{
36-
public function send(Envelope $envelope): Envelope
40+
public function get(): iterable
3741
{
3842
// ...
3943
}
4044

41-
public function receive(callable $handler): void
45+
public function ack(Envelope $envelope): void
4246
{
4347
// ...
4448
}
4549

46-
public function stop(): void
50+
public function reject(Envelope $envelope): void
51+
{
52+
// ...
53+
}
54+
55+
public function send(Envelope $envelope): Envelope
4756
{
4857
// ...
4958
}

0 commit comments

Comments
 (0)