author | ymh <ymh.work@gmail.com> |
Thu, 09 Feb 2017 15:05:36 +0100 | |
changeset 504 | 4ab820b387da |
parent 405 | f239c8c5bb94 |
child 531 | 48f5380c26d0 |
permissions | -rw-r--r-- |
28 | 1 |
<?php |
2 |
||
3 |
namespace CorpusParole\Providers; |
|
4 |
||
5 |
use Config; |
|
6 |
||
7 |
use Illuminate\Support\ServiceProvider; |
|
8 |
||
9 |
class LexvoServiceProvider extends ServiceProvider |
|
10 |
{ |
|
11 |
/** |
|
12 |
* Register the application services. |
|
13 |
* |
|
14 |
* @return void |
|
15 |
*/ |
|
16 |
public function register() |
|
17 |
{ |
|
18 |
$this->app->bind('CorpusParole\Services\LexvoResolverInterface', function($app) { |
|
405
f239c8c5bb94
migrate to rdf4j (2.1.1) from sesame (4.1.1)
ymh <ymh.work@gmail.com>
parents:
28
diff
changeset
|
19 |
$sparqlClient = $app->make('EasyRdf\Sparql\Client', [config('corpusparole.lexvo_rdf4j_query_url'), null]); |
28 | 20 |
return $app->make('CorpusParole\Services\LexvoResolver', [$sparqlClient,]); |
21 |
}); |
|
22 |
} |
|
23 |
} |