File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
src/Symfony/Component/Messenger/Attribute Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 20
20
class AsMessageHandler
21
21
{
22
22
public function __construct (
23
+ /**
24
+ * Name of the bus from which this handler can receive messages, by default all buses.
25
+ */
23
26
public ?string $ bus = null ,
27
+
28
+ /**
29
+ * Name of the transport from which this handler can receive messages, by default all transports.
30
+ */
24
31
public ?string $ fromTransport = null ,
32
+
33
+ /**
34
+ * Type of messages (FQCN) that can be processed by the handler, only needed if can't be guessed by type-hint.
35
+ */
25
36
public ?string $ handles = null ,
37
+
38
+ /**
39
+ * Name of the method that will process the message, only if the target is a class.
40
+ */
26
41
public ?string $ method = null ,
42
+
43
+ /**
44
+ * Priority of this handler when multiple handlers can process the same message.
45
+ */
27
46
public int $ priority = 0 ,
28
47
) {
29
48
}
You can’t perform that action at this time.
0 commit comments