server/src/app/Providers/BnfServiceProvider.php
changeset 531 48f5380c26d0
parent 133 821253d361d1
child 537 d2e6ee099125
equal deleted inserted replaced
530:a76bae4795d5 531:48f5380c26d0
    14      * @return void
    14      * @return void
    15      */
    15      */
    16     public function register()
    16     public function register()
    17     {
    17     {
    18         $this->app->bind('CorpusParole\Services\BnfResolverInterface', function($app) {
    18         $this->app->bind('CorpusParole\Services\BnfResolverInterface', function($app) {
    19             $sparqlClient = $app->make('EasyRdf\Sparql\Client', [config('corpusparole.bnf_query_url'), null]);
    19             $sparqlClient = $app->make('CorpusParole\Libraries\Sparql\GuzzleSparqlClient', [$app['Guzzle'], config('corpusparole.bnf_query_url'), null]);
    20             return $app->make('CorpusParole\Services\BnfResolver', [$sparqlClient,]);
    20             return $app->make('CorpusParole\Services\BnfResolver', [$sparqlClient,]);
    21         });
    21         });
    22     }
    22     }
    23 }
    23 }