We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c8fbf0 commit 5416e70Copy full SHA for 5416e70
bin/feedio
@@ -2,6 +2,7 @@
2
<?php
3
4
use FeedIo\FeedIo;
5
+use Http\Discovery\HttpClientDiscovery;
6
7
foreach( [__DIR__.'/../vendor/autoload.php', __DIR__.'/../../../autoload.php'] as $file ) {
8
if ( file_exists($file) ) {
@@ -20,8 +21,8 @@ function main($argc, $argv)
20
21
exit;
22
}
23
- $client = \Http\Discovery\HttpClientDiscovery::find();
24
- $feedIo = new FeedIo($client);
+ $psrClient = HttpClientDiscovery::find();
25
+ $feedIo = new FeedIo(new \FeedIo\Adapter\Http\Client($psrClient));
26
switch($argv[1]) {
27
case 'discover':
28
discover($feedIo, $argv[2]);
0 commit comments