author | ymh <ymh.work@gmail.com> |
Fri, 09 Jun 2017 15:22:02 +0200 | |
changeset 531 | 48f5380c26d0 |
parent 133 | 821253d361d1 |
child 537 | d2e6ee099125 |
permissions | -rw-r--r-- |
133 | 1 |
<?php |
2 |
||
3 |
namespace CorpusParole\Providers; |
|
4 |
||
5 |
use Config; |
|
6 |
||
7 |
use Illuminate\Support\ServiceProvider; |
|
8 |
||
9 |
class BnfServiceProvider 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\BnfResolverInterface', function($app) { |
|
531
48f5380c26d0
Replace EasyRdf http loading with guzzle to solve proxy problems
ymh <ymh.work@gmail.com>
parents:
133
diff
changeset
|
19 |
$sparqlClient = $app->make('CorpusParole\Libraries\Sparql\GuzzleSparqlClient', [$app['Guzzle'], config('corpusparole.bnf_query_url'), null]); |
133 | 20 |
return $app->make('CorpusParole\Services\BnfResolver', [$sparqlClient,]); |
21 |
}); |
|
22 |
} |
|
23 |
} |