Fazendo o bind entre contrato e classe

master v0.0.4
parent 94d23275f2
commit 0c604f7182

@ -2,6 +2,8 @@
namespace Ae3\LaravelGeoLayer\app\Providers; namespace Ae3\LaravelGeoLayer\app\Providers;
use Ae3\LaravelGeoLayer\app\Services\Contracts\GeocodingServiceContract;
use Ae3\LaravelGeoLayer\app\Services\GeocodingService;
use Illuminate\Support\ServiceProvider; use Illuminate\Support\ServiceProvider;
class LaravelGeoServiceProvider extends ServiceProvider class LaravelGeoServiceProvider extends ServiceProvider
@ -28,5 +30,7 @@ class LaravelGeoServiceProvider extends ServiceProvider
__DIR__ . '/../../config/config.php' => config_path('laravel-geo-layer.php'), __DIR__ . '/../../config/config.php' => config_path('laravel-geo-layer.php'),
], 'config'); ], 'config');
} }
$this->app->bind(GeocodingServiceContract::class, GeocodingService::class);
} }
} }
Loading…
Cancel
Save