ApiService/MandrillApiService.php 1 location
|
@@ 36-45 (lines=10) @@
|
33 |
|
/** |
34 |
|
* @return array<HookInterface> |
35 |
|
*/ |
36 |
|
public function bind() |
37 |
|
{ |
38 |
|
if (!$this->request->get('mandrill_events')) { |
39 |
|
throw new \Exception("Could not find data"); |
40 |
|
} |
41 |
|
|
42 |
|
$mandrillEvents = json_decode($this->request->get('mandrill_events'), true); |
43 |
|
|
44 |
|
return array_map([$this, 'bindHook'], $mandrillEvents); |
45 |
|
} |
46 |
|
} |
47 |
|
|
ApiService/SparkpostApiService.php 1 location
|
@@ 42-51 (lines=10) @@
|
39 |
|
/** |
40 |
|
* @return array<HookInterface> |
41 |
|
*/ |
42 |
|
public function bind() |
43 |
|
{ |
44 |
|
if (!$this->request->getContent()) { |
45 |
|
throw new \Exception("Could not find data"); |
46 |
|
} |
47 |
|
|
48 |
|
$sparkpostEvents = json_decode($this->request->getContent(), true); |
49 |
|
|
50 |
|
return array_map([$this, 'bindHook'], $sparkpostEvents); |
51 |
|
} |
52 |
|
} |
53 |
|
|