Skip to content

Commit d7ccc20

Browse files
committed
Update binary
1 parent 5a36ec8 commit d7ccc20

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

bin/feedio

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

44
use FeedIo\FeedIo;
5-
use FeedIo\Factory;
65

76
foreach( [__DIR__.'/../vendor/autoload.php', __DIR__.'/../../../autoload.php'] as $file ) {
87
if ( file_exists($file) ) {
@@ -21,7 +20,7 @@ function main($argc, $argv)
2120
exit;
2221
}
2322

24-
$feedIo = Factory::create()->getFeedIo();
23+
$feedIo = new FeedIo;
2524
switch($argv[1]) {
2625
case 'discover':
2726
discover($feedIo, $argv[2]);
@@ -68,4 +67,4 @@ function formatDateInterval(int $interval): string
6867
$zero = new \DateTime('@0');
6968
$diff = $zero->diff(new \DateTime("@{$interval}"));
7069
return $diff->format('%a days, %h hours, %i minutes, %s seconds');
71-
}
70+
}

0 commit comments

Comments
 (0)