eko / FeedBundle

A Symfony bundle to build RSS feeds from your entities
http://vincent.composieux.fr
MIT License
141 stars 50 forks source link

Feed reader media items #63

Open aarsla opened 6 years ago

aarsla commented 6 years ago

Is there support for media items in feed reader? Thanks

eko commented 6 years ago

Hello @aarsla,

This is not done in the default hydrator but you can create your in order to support it. See: https://github.com/eko/FeedBundle#read-an-xml-feed-and-populate-an-entity

aarsla commented 6 years ago

Hey @eko, thank you for a quick response!

I am already using custom hydrator but couldn't find an easy way of extracting and similar tags from feed reader (eko_feed.feed.reader).

My Article class implements ItemInterface and RoutedItemInterface but I need to get media from Zend\Feed\Reader\Feed\FeedInterface $entry defined in public function hydrate(FeedInterface $feed, $entityName).

Any hints appreciated. Thank you!