Preview: LocationServiceProvider.php
Size: 734 B
/home/getspomw/royalsquad.us/vendor/stevebauman/location/src/LocationServiceProvider.php
<?php
namespace Stevebauman\Location;
use Illuminate\Support\ServiceProvider;
use Stevebauman\Location\Commands\Update;
class LocationServiceProvider extends ServiceProvider
{
/**
* Bootstrap the service provider.
*/
public function boot(): void
{
$this->mergeConfigFrom(
$config = __DIR__.'/../config/location.php', 'location'
);
if ($this->app->runningInConsole()) {
$this->publishes([$config => config_path('location.php')]);
}
$this->commands(Update::class);
}
/**
* Register bindings in the service container.
*/
public function register(): void
{
$this->app->singleton(LocationManager::class);
}
}
Directory Contents
Dirs: 4 × Files: 7