author | ymh <ymh.work@gmail.com> |
Thu, 10 Dec 2015 16:05:53 +0100 | |
changeset 23 | 037687868bc4 |
child 139 | 8d688175513a |
permissions | -rw-r--r-- |
23 | 1 |
<?php |
2 |
||
3 |
namespace CorpusParole\Providers; |
|
4 |
||
5 |
use Config; |
|
6 |
||
7 |
use Illuminate\Support\ServiceProvider; |
|
8 |
||
9 |
use CorpusParole\Services\ViafResolver; |
|
10 |
||
11 |
class ViafServiceProvider extends ServiceProvider |
|
12 |
{ |
|
13 |
/** |
|
14 |
* Register the application services. |
|
15 |
* |
|
16 |
* @return void |
|
17 |
*/ |
|
18 |
public function register() |
|
19 |
{ |
|
20 |
$this->app->bind('CorpusParole\Services\ViafResolverInterface', function($app) { |
|
21 |
return new ViafResolver($app['guzzle']); |
|
22 |
}); |
|
23 |
} |
|
24 |
} |