File tree 2 files changed +16
-7
lines changed
Filter options
2 files changed +16
-7
lines changed
Original file line number Diff line number Diff line change @@ -400,7 +400,7 @@ possible paths:
400
400
401
401
#. When initially loading the page in a browser, the form hasn't been submitted
402
402
yet and ``$form->isSubmitted() `` returns ``false ``. So, the form is created
403
- and rendered.
403
+ and rendered;
404
404
405
405
#. When the user submits the form, :method: `Symfony\\ Component\\ Form\\ FormInterface::handleRequest `
406
406
recognizes this and immediately writes the submitted data back into the
@@ -413,7 +413,7 @@ possible paths:
413
413
written into the form, but this time :method: `Symfony\\ Component\\ Form\\ FormInterface::isValid `
414
414
returns ``true ``. Now you have the opportunity to perform some actions using
415
415
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);
417
417
418
418
.. note ::
419
419
Original file line number Diff line number Diff line change @@ -28,22 +28,31 @@ DSN. You will need a transport factory::
28
28
}
29
29
}
30
30
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;
33
37
34
38
class YourTransport implements TransportInterface
35
39
{
36
- public function send(Envelope $envelope ): Envelope
40
+ public function get( ): iterable
37
41
{
38
42
// ...
39
43
}
40
44
41
- public function receive(callable $handler ): void
45
+ public function ack(Envelope $envelope ): void
42
46
{
43
47
// ...
44
48
}
45
49
46
- public function stop(): void
50
+ public function reject(Envelope $envelope): void
51
+ {
52
+ // ...
53
+ }
54
+
55
+ public function send(Envelope $envelope): Envelope
47
56
{
48
57
// ...
49
58
}
You can’t perform that action at this time.
0 commit comments