File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed
src/Symfony/Component/Messenger Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Messenger ;
13
13
14
+ use Symfony \Component \Messenger \Exception \ExceptionInterface ;
14
15
use Symfony \Component \Messenger \Stamp \StampInterface ;
15
16
16
17
/**
@@ -23,6 +24,8 @@ interface MessageBusInterface
23
24
*
24
25
* @param object|Envelope $message The message or the message pre-wrapped in an envelope
25
26
* @param StampInterface[] $stamps
27
+ *
28
+ * @throws ExceptionInterface
26
29
*/
27
30
public function dispatch (object $ message , array $ stamps = []): Envelope ;
28
31
}
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Messenger \Middleware ;
13
13
14
14
use Symfony \Component \Messenger \Envelope ;
15
+ use Symfony \Component \Messenger \Exception \ExceptionInterface ;
15
16
16
17
/**
17
18
* @author Samuel Roze <samuel.roze@gmail.com>
18
19
*/
19
20
interface MiddlewareInterface
20
21
{
22
+ /**
23
+ * @throws ExceptionInterface
24
+ */
21
25
public function handle (Envelope $ envelope , StackInterface $ stack ): Envelope ;
22
26
}
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \Messenger \Transport \Sender ;
13
13
14
14
use Symfony \Component \Messenger \Envelope ;
15
+ use Symfony \Component \Messenger \Exception \ExceptionInterface ;
15
16
16
17
/**
17
18
* @author Samuel Roze <samuel.roze@gmail.com>
@@ -25,6 +26,8 @@ interface SenderInterface
25
26
* like delivery delay.
26
27
*
27
28
* If applicable, the returned Envelope should contain a TransportMessageIdStamp.
29
+ *
30
+ * @throws ExceptionInterface
28
31
*/
29
32
public function send (Envelope $ envelope ): Envelope ;
30
33
}
You can’t perform that action at this time.
0 commit comments