equal
deleted
inserted
replaced
|
1 <?php |
|
2 |
|
3 namespace CorpusParole\Providers; |
|
4 |
|
5 use Illuminate\Support\ServiceProvider; |
|
6 |
|
7 use Config; |
|
8 |
|
9 use CorpusParole\Services\GeonamesResolver; |
|
10 |
|
11 |
|
12 class GeonamesServiceProvider extends ServiceProvider |
|
13 { |
|
14 |
|
15 /** |
|
16 * Register the application services. |
|
17 * |
|
18 * @return void |
|
19 */ |
|
20 public function register() |
|
21 { |
|
22 $this->app->bind('CorpusParole\Services\GeonamesResolverInterface', function($app) { |
|
23 return new GeonamesResolver($app['Guzzle']); |
|
24 }); |
|
25 } |
|
26 } |