Skip to content

Commit

Permalink
Merge pull request #103 from simcen/master
Browse files Browse the repository at this point in the history
Added missing web_url OneSignal option
  • Loading branch information
norkunas committed Dec 11, 2018
1 parent a8c461f commit 1087b0b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Resolver/NotificationResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ public function resolve(array $data)
->setAllowedValues('url', function ($value) {
return $this->filterUrl($value);
})
->setDefined('web_url')
->setAllowedTypes('web_url', 'string')
->setAllowedValues('web_url', function ($value) {
return $this->filterUrl($value);
})
->setDefined('send_after')
->setAllowedTypes('send_after', '\DateTimeInterface')
->setNormalizer('send_after', function (Options $options, \DateTimeInterface $value) {
Expand Down

0 comments on commit 1087b0b

Please sign in to comment.