@@ 24-35 (lines=12) @@ | ||
21 | * @param NotificationInterface $notification |
|
22 | * @return \IrishDan\NotificationBundle\Message\Message |
|
23 | */ |
|
24 | public function format(NotificationInterface $notification) |
|
25 | { |
|
26 | parent::format($notification); |
|
27 | ||
28 | $dispatchData = [ |
|
29 | 'type' => 'info', |
|
30 | ]; |
|
31 | ||
32 | $messageData = self::createMessagaData($notification->getDataArray()); |
|
33 | ||
34 | return self::createMessage($dispatchData, $messageData, $this->channelName); |
|
35 | } |
|
36 | ||
37 | public function dispatch(MessageInterface $message) |
|
38 | { |
@@ 12-21 (lines=10) @@ | ||
9 | ||
10 | class DummyAdapter extends BaseMessageAdapter implements MessageAdapterInterface |
|
11 | { |
|
12 | public function format(NotificationInterface $notification) |
|
13 | { |
|
14 | $notification->setChannel($this->channelName); |
|
15 | parent::format($notification); |
|
16 | ||
17 | $dispatchData = []; |
|
18 | $messageData = self::createMessagaData([]); |
|
19 | ||
20 | return self::createMessage($dispatchData, $messageData, $this->channelName); |
|
21 | } |
|
22 | ||
23 | public function dispatch(MessageInterface $message) |
|
24 | { |