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 5a36ec8 commit d7ccc20Copy full SHA for d7ccc20
bin/feedio
@@ -2,7 +2,6 @@
2
<?php
3
4
use FeedIo\FeedIo;
5
-use FeedIo\Factory;
6
7
foreach( [__DIR__.'/../vendor/autoload.php', __DIR__.'/../../../autoload.php'] as $file ) {
8
if ( file_exists($file) ) {
@@ -21,7 +20,7 @@ function main($argc, $argv)
21
20
exit;
22
}
23
24
- $feedIo = Factory::create()->getFeedIo();
+ $feedIo = new FeedIo;
25
switch($argv[1]) {
26
case 'discover':
27
discover($feedIo, $argv[2]);
@@ -68,4 +67,4 @@ function formatDateInterval(int $interval): string
68
67
$zero = new \DateTime('@0');
69
$diff = $zero->diff(new \DateTime("@{$interval}"));
70
return $diff->format('%a days, %h hours, %i minutes, %s seconds');
71
-}
+}
0 commit comments