update v1.0.7.9 R.C.
This is a Release Candidate. We are still testing.
This commit is contained in:
21
vendor/brozot/laravel-fcm/src/FCMManager.php
vendored
Normal file
21
vendor/brozot/laravel-fcm/src/FCMManager.php
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php namespace LaravelFCM;
|
||||
|
||||
|
||||
use GuzzleHttp\Client;
|
||||
use Illuminate\Support\Manager;
|
||||
|
||||
class FCMManager extends Manager {
|
||||
|
||||
public function getDefaultDriver()
|
||||
{
|
||||
return $this->app['config']['fcm.driver'];
|
||||
}
|
||||
|
||||
protected function createHttpDriver()
|
||||
{
|
||||
$config = $this->app['config']->get('fcm.http', []);
|
||||
return new Client([
|
||||
'timeout' => $config['timeout'],
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user