server/src/app/Providers/LexvoServiceProvider.php
changeset 405 f239c8c5bb94
parent 28 b0b56e0f8c7f
child 531 48f5380c26d0
equal deleted inserted replaced
404:0a5eef6ad2fe 405:f239c8c5bb94
    14      * @return void
    14      * @return void
    15      */
    15      */
    16     public function register()
    16     public function register()
    17     {
    17     {
    18         $this->app->bind('CorpusParole\Services\LexvoResolverInterface', function($app) {
    18         $this->app->bind('CorpusParole\Services\LexvoResolverInterface', function($app) {
    19             $sparqlClient = $app->make('EasyRdf\Sparql\Client', [config('corpusparole.lexvo_sesame_query_url'), null]);
    19             $sparqlClient = $app->make('EasyRdf\Sparql\Client', [config('corpusparole.lexvo_rdf4j_query_url'), null]);
    20             return $app->make('CorpusParole\Services\LexvoResolver', [$sparqlClient,]);
    20             return $app->make('CorpusParole\Services\LexvoResolver', [$sparqlClient,]);
    21         });
    21         });
    22     }
    22     }
    23 }
    23 }