Replace
$reader = $this->container->get('debril.reader');
$feed = $reader->getFeedContent($url, $date);
With
$feedIo = $this->container->get('feedio');
$feed = $feedIo->readSince($url, $date)->getFeed();
Replace
use Debril\RssAtomBundle\Protocol\Parser\FeedContent;
$feed = new FeedContent();
With
use FeedIo\Feed;
$feed = new Feed();
Replace
use Debril\RssAtomBundle\Protocol\FeedOutInterface;
use Debril\RssAtomBundle\Protocol\FeedInInterface;
With
use FeedIo\FeedInterface;
Replace
$items = $feed->getItems();
foreach ( $items as $item ) {
echo $item->getTitle();
// ...
}
With
foreach ( $feed as $item ) {
echo $item->getTitle();
// ...
}
Replace
use Debril\RssAtomBundle\Protocol\ItemOutInterface;
use Debril\RssAtomBundle\Protocol\ItemInInterface;
With
use FeedIo\Feed\ItemInterface;
$items = $feed->getItems();
foreach ( $items as $item ) {
$date = $item->getUpdated();
// ...
}
foreach ( $feed as $item ) {
$date = $item->getLastModified();
// ...
}
use getElement($name) instead