platform/api/symfony/Component/Messenger/HandleTrait.yaml

28 lines
1.1 KiB
YAML
Raw Normal View History

2024-09-02 17:44:11 +00:00
name: HandleTrait
class_comment: null
dependencies:
- name: LogicException
type: class
source: Symfony\Component\Messenger\Exception\LogicException
- name: HandledStamp
type: class
source: Symfony\Component\Messenger\Stamp\HandledStamp
properties: []
methods:
- name: handle
visibility: private
parameters:
- name: message
comment: "# * Leverages a message bus to expect a single, synchronous message handling\
\ and return its result.\n# *\n# * @author Maxime Steinhausser <maxime.steinhausser@gmail.com>\n\
# */\n# trait HandleTrait\n# {\n# private MessageBusInterface $messageBus;\n#\
\ \n# /**\n# * Dispatches the given message, expecting to be handled by a single\
\ handler\n# * and returns the result from the handler returned value.\n# * This\
\ behavior is useful for both synchronous command & query buses,\n# * the last\
\ one usually returning the handler result.\n# *\n# * @param object|Envelope $message\
\ The message or the message pre-wrapped in an envelope"
traits:
- Symfony\Component\Messenger\Exception\LogicException
- Symfony\Component\Messenger\Stamp\HandledStamp
interfaces: []