for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Arcanedev\GeoLocation;
use Arcanedev\Support\PackageServiceProvider;
/**
* Class GeoLocationServiceProvider
*
* @package Arcanedev\GeoLocation
* @author ARCANEDEV <[email protected]>
*/
class GeoLocationServiceProvider extends PackageServiceProvider
{
/* -----------------------------------------------------------------
| Properties
| -----------------------------------------------------------------
* Package name.
* @var string
protected $package = 'geo-location';
| Main Methods
* Register the service provider.
public function register()
parent::register();
$this->registerConfig();
$this->bind(\GuzzleHttp\ClientInterface::class, \GuzzleHttp\Client::class);
$this->singleton(Contracts\GoogleManager::class, function ($app) {
return new Google\GoogleManager($app);
});
}
* Boot the service provider.
public function boot()
parent::boot();
$this->publishConfig();
* Get the services provided by the provider.
* @return array
public function provides()
return [
Contracts\GoogleManager::class,
];