api/symfony/Component/Messenger/Transport/Sender/SendersLocator.yaml
2024-09-26 02:03:21 -07:00

75 lines
1.9 KiB
YAML

name: SendersLocator
class_comment: '# * Maps a message to a list of senders.
# *
# * @author Fabien Potencier <fabien@symfony.com>'
dependencies:
- name: ContainerInterface
type: class
source: Psr\Container\ContainerInterface
- name: AsMessage
type: class
source: Symfony\Component\Messenger\Attribute\AsMessage
- name: Envelope
type: class
source: Symfony\Component\Messenger\Envelope
- name: RuntimeException
type: class
source: Symfony\Component\Messenger\Exception\RuntimeException
- name: HandlersLocator
type: class
source: Symfony\Component\Messenger\Handler\HandlersLocator
- name: TransportNamesStamp
type: class
source: Symfony\Component\Messenger\Stamp\TransportNamesStamp
properties: []
methods:
- name: __construct
visibility: public
parameters:
- name: sendersMap
- name: sendersLocator
comment: '# * Maps a message to a list of senders.
# *
# * @author Fabien Potencier <fabien@symfony.com>
# */
# class SendersLocator implements SendersLocatorInterface
# {
# /**
# * @param array<string, list<string>> $sendersMap An array, keyed by "type",
set to an array of sender aliases
# * @param ContainerInterface $sendersLocator Locator of senders, keyed
by sender alias'
- name: getSenders
visibility: public
parameters:
- name: envelope
comment: null
- name: getTransportNamesFromAttribute
visibility: private
parameters:
- name: envelope
comment: null
- name: getSenderFromAlias
visibility: private
parameters:
- name: senderAlias
comment: null
traits:
- Psr\Container\ContainerInterface
- Symfony\Component\Messenger\Attribute\AsMessage
- Symfony\Component\Messenger\Envelope
- Symfony\Component\Messenger\Exception\RuntimeException
- Symfony\Component\Messenger\Handler\HandlersLocator
- Symfony\Component\Messenger\Stamp\TransportNamesStamp
interfaces:
- SendersLocatorInterface