Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
Make it possible to set all the config options for phpushbullet.
Browse files Browse the repository at this point in the history
Enable laravel 5.6 package discovery.
  • Loading branch information
Trent Schmidt committed Jun 18, 2018
1 parent 29adfb3 commit 7d522e6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
composer.phar
composer.lock
.DS_Store
.idea
8 changes: 7 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "lahaxearnaud/laravel-pushbullet",
"description": "Laravel integration of joetannenbaum/phpushbullet",
"description": "PushBullet library for Laravel.",
"keywords": ["pushbullet", "laravel", "notification"],
"license": "MIT",
"authors": [
Expand All @@ -20,5 +19,12 @@
"Lahaxearnaud\\LaravelPushbullet\\": "src/"
}
},
"extra": {
"laravel": {
"providers": [
"Lahaxearnaud\\LaravelPushbullet\\LaravelPushbulletServiceProvider"
]
}
},
"minimum-stability": "stable"
}
5 changes: 3 additions & 2 deletions src/LaravelPushbullet.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<?php namespace Lahaxearnaud\LaravelPushbullet;

use Illuminate\Support\Collection;
use PHPushbullet\Connection;
use PHPushbullet\PHPushbullet;

class LaravelPushbullet extends PHPushbullet {

public function __construct($access_token = null)
public function __construct($access_token = null, Connection $connection = null, array $config = [])
{
parent::__construct($access_token, null, ['verify' => false]);
parent::__construct($access_token, $connection, $config);
}


Expand Down

0 comments on commit 7d522e6

Please sign in to comment.