Skip to content

Commit 5416e70

Browse files
committed
Update feed-io binary
1 parent 8c8fbf0 commit 5416e70

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/feedio

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<?php
33

44
use FeedIo\FeedIo;
5+
use Http\Discovery\HttpClientDiscovery;
56

67
foreach( [__DIR__.'/../vendor/autoload.php', __DIR__.'/../../../autoload.php'] as $file ) {
78
if ( file_exists($file) ) {
@@ -20,8 +21,8 @@ function main($argc, $argv)
2021
exit;
2122
}
2223

23-
$client = \Http\Discovery\HttpClientDiscovery::find();
24-
$feedIo = new FeedIo($client);
24+
$psrClient = HttpClientDiscovery::find();
25+
$feedIo = new FeedIo(new \FeedIo\Adapter\Http\Client($psrClient));
2526
switch($argv[1]) {
2627
case 'discover':
2728
discover($feedIo, $argv[2]);

0 commit comments

Comments
 (0)