Skip to content

Commit

Permalink
patched
Browse files Browse the repository at this point in the history
  • Loading branch information
turbo124 committed Jan 8, 2017
1 parent cb5de5a commit 987ca34
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "turbo124/laravel-push-notification",
"description": "Laravel package to send push notifications to mobile devices (apns, gcm)",
"keywords": ["apns","gcm","push","notification", "laravel"],
"keywords": ["apns","gcm","push","notification", "laravel","fcm","firebase"],
"authors": [
{
"name": "DaviBenNun",
"email": "davi@andradenunes.org"
"name": "David Bomba",
"email": "turbo124@gmail.com"
}
],
"require": {
"php": ">=5.3.0",
"illuminate/support": "4.*",
"sly/notification-pusher": "2.2.12"
"turbo124/notification-pusher": "dev-master"
},
"autoload": {
"psr-0": {
Expand Down
7 changes: 7 additions & 0 deletions src/Davibennun/LaravelPushNotification/PushNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ public function GcmAdapter()
return $instance->newInstanceArgs(func_get_args());
}

public function FcmAdapter()
{
$instance = (new \ReflectionClass('Sly\NotificationPusher\Model\FcmAdapter'));
return $instance->newInstanceArgs(func_get_args());
}


public function Push()
{
$instance = (new \ReflectionClass('Sly\NotificationPusher\Model\Push'));
Expand Down

0 comments on commit 987ca34

Please sign in to comment.