Renderer/RssRenderer.php
private function getEnclosure(ExtendedItemInterface $item, XMLManager $xml)
    {
        $enc = $item->getFeedEnclosure();
        if (is_array($enc)) {
            $enclosure = $xml->getXml()->createElement('enclosure');
            foreach ($enc as $key => $value) {
                $enclosure->setAttribute($key, $value);
            }

            return $enclosure;
        }

        return null;
    }
private function getEnclosure(ExtendedItemInterface $item, XMLManager $xml)
    {
        $enc = $item->getFeedEnclosure();
        if (is_array($enc)) {
            $enclosure = $xml->getXml()->createElement('enclosure');
            foreach ($enc as $key => $value) {
                $enclosure->setAttribute($key, $value);
            }

            return $enclosure;
        }

        return null;
    }
Extract enclosure

@param \Nekland\Bundle\FeedBundle\Item\ExtendedItemInterface $item
@param \Nekland\Bundle\FeedBundle\XML\XMLManager             $xml
@return \DOMElement|null