Skip to content

Commit 436f53d

Browse files
author
Mattias Fjellvang
committed
send method now returns self, and added getFeedback() method
1 parent 6904aac commit 436f53d

File tree

1 file changed

+5
-7
lines changed
  • src/Davibennun/LaravelPushNotification

1 file changed

+5
-7
lines changed

src/Davibennun/LaravelPushNotification/App.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function __construct($config)
1515

1616
$adapterConfig = $config;
1717
unset($adapterConfig['environment'], $adapterConfig['service']);
18-
18+
1919
$this->adapter = new $adapterClassName($adapterConfig);
2020
}
2121

@@ -26,17 +26,15 @@ public function to($addressee)
2626
return $this;
2727
}
2828

29-
public function send($message, $options = array())
30-
{
29+
public function send($message, $options = array()) {
3130
$push = new Push($this->adapter, $this->addressee, ($message instanceof Message) ? $message : new Message($message, $options));
3231

3332
$this->pushManager->add($push);
3433

35-
return $this->pushManager->push();
34+
return $this;
3635
}
3736

38-
public function feedback() {
39-
return [];
37+
public function getFeedback() {
38+
return $this->pushManager->getFeedback($this->adapter);
4039
}
41-
4240
}

0 commit comments

Comments
 (0)