Skip to content

Commit

Permalink
Merge pull request #9 from jeroenlammerts/develop
Browse files Browse the repository at this point in the history
fix to support blacklist and whitelist methods
  • Loading branch information
lostincode authored Feb 10, 2017
2 parents 7c5c967 + bb99e83 commit 1111a02
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/MandrillWebhookController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ public function handleWebHook(Request $request)

foreach ($events as $event) {
$eventName = isset($event['event']) ? $event['event'] : 'undefined';
if($eventName == 'undefined' && isset($event['type'])){
$eventName = $event['type'];
}
$method = 'handle' . studly_case(str_replace('.', '_', $eventName));

if (method_exists($this, $method)) {
Expand Down

0 comments on commit 1111a02

Please sign in to comment.