Files
faveo/vendor/davibennun/laravel-push-notification/src/Davibennun/LaravelPushNotification/LaravelPushNotificationServiceProvider.php
Manish Verma 126fbb0255 Laravel version update
Laravel version update
2018-08-06 18:55:45 +05:30

51 lines
1.1 KiB
PHP

<?php namespace Davibennun\LaravelPushNotification;
use Illuminate\Support\ServiceProvider,
Davibennun\LaravelPushNotification\PushNotification;
class LaravelPushNotificationServiceProvider extends ServiceProvider {
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = false;
/**
* Bootstrap the application events.
*
* @return void
*/
public function boot()
{
$config_path = function_exists('config_path') ? config_path('push-notification.php') : 'push-notification.php';
$this->publishes([
__DIR__.'/../../config/config.php' => $config_path
], 'config');
}
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
$this->app->singleton('pushNotification', function ($app) {
return new PushNotification();
});
}
/**
* Get the services provided by the provider.
*
* @return array
*/
public function provides()
{
return array();
}
}