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 2020class AsMessageHandler
2121{
2222 public function __construct (
23+ /**
24+ * Name of the bus from which this handler can receive messages, by default all buses.
25+ */
2326 public ?string $ bus = null ,
27+
28+ /**
29+ * Name of the transport from which this handler can receive messages, by default all transports.
30+ */
2431 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+ */
2536 public ?string $ handles = null ,
37+
38+ /**
39+ * Name of the method that will process the message, only if the target is a class.
40+ */
2641 public ?string $ method = null ,
42+
43+ /**
44+ * Priority of this handler when multiple handlers can process the same message.
45+ */
2746 public int $ priority = 0 ,
2847 ) {
2948 }
You can’t perform that action at this time.
0 commit comments