server/src/app/Console/Commands/ImportCocoonRDF.php
changeset 544 ad58d7627f70
parent 531 48f5380c26d0
--- a/server/src/app/Console/Commands/ImportCocoonRDF.php	Fri Sep 08 15:03:29 2017 +0200
+++ b/server/src/app/Console/Commands/ImportCocoonRDF.php	Wed Sep 13 22:19:48 2017 +0200
@@ -9,6 +9,7 @@
 use Symfony\Component\Console\Input\InputArgument;
 use Phpoaipmh\Client;
 use Phpoaipmh\Endpoint;
+use Phpoaipmh\HttpAdapter\GuzzleAdapter;
 use CorpusParole\Libraries\Sparql\GuzzleSparqlClient;
 
 class ImportCocoonRDF extends Command {
@@ -233,7 +234,7 @@
         ];
 
         if($raw) {
-            $client = new Client(Config::get('corpusparole.cocoon_oaipmh_url'));
+            $client = new Client(Config::get('corpusparole.cocoon_oaipmh_url'), new GuzzleAdapter($this->httpClient));
             $endpoint = new Endpoint($client);
 
             $recs = $endpoint->listRecords('olac', null, null, 'LanguesDeFrance');