1 | <?php |
||
28 | class HttpProtocol implements ProtocolInterface |
||
29 | { |
||
30 | /** |
||
31 | * @var AuthenticatorInterface |
||
32 | */ |
||
33 | private $authenticator; |
||
34 | |||
35 | /** |
||
36 | * @var HttpSenderInterface |
||
37 | */ |
||
38 | private $httpSender; |
||
39 | |||
40 | /** |
||
41 | * @var MessageEncoderInterface |
||
42 | */ |
||
43 | private $messageEncoder; |
||
44 | |||
45 | /** |
||
46 | * @var UriFactoryInterface |
||
47 | */ |
||
48 | private $uriFactory; |
||
49 | |||
50 | /** |
||
51 | * @var HttpProtocolVisitorInterface |
||
52 | */ |
||
53 | private $visitor; |
||
54 | |||
55 | /** |
||
56 | * @var ExceptionFactoryInterface |
||
57 | */ |
||
58 | private $exceptionFactory; |
||
59 | |||
60 | /** |
||
61 | * Constructor. |
||
62 | * |
||
63 | * @param AuthenticatorInterface $authenticator |
||
64 | * @param HttpSenderInterface $httpSender |
||
65 | * @param MessageEncoderInterface $messageEncoder |
||
66 | * @param UriFactoryInterface $uriFactory |
||
67 | * @param HttpProtocolVisitorInterface $visitor |
||
68 | * @param ExceptionFactoryInterface $exceptionFactory |
||
69 | */ |
||
70 | public function __construct( |
||
85 | |||
86 | /** |
||
87 | * {@inheritdoc} |
||
88 | */ |
||
89 | public function send(Receiver $receiver, Message $message, bool $sandbox) |
||
99 | |||
100 | /** |
||
101 | * Inner send process |
||
102 | * |
||
103 | * @param Receiver $receiver |
||
104 | * @param Message $message |
||
105 | * @param bool $sandbox |
||
106 | * |
||
107 | * @throws SendMessageException |
||
108 | */ |
||
109 | private function doSend(Receiver $receiver, Message $message, bool $sandbox) |
||
133 | } |
||
134 |