public function render(Feed $feed)
    {
        $filename = sprintf('%s/%s', $this->basePath, $feed->getFilename('rss'));
        if (is_file($filename)) {
            unlink($filename);
        }

        $xml = new XMLManager($filename);
        $this->init($xml, $feed);
        $this->writeItems($xml, $feed);
        $xml->save();
    }
public function render(Feed $feed)
    {
        $filename = sprintf('%s/%s', $this->basePath, $feed->getFilename('rss'));
        if (is_file($filename)) {
            unlink($filename);
        }

        $xml = new XMLManager($filename);
        $this->init($xml, $feed);
        $this->writeItems($xml, $feed);
        $xml->save();
    }
public function render ( Feed $ feed ) { $ filename = sprintf ( '%s/%s' , $ this -> basePath , $ feed -> getFilename ( 'rss' ) ) ; if ( is_file ( $ filename ) ) { unlink ( $ filename ) ; } $ xml = new XMLManager ( $ filename ) ; $ this -> init ( $ xml , $ feed ) ; $ this -> writeItems ( $ xml , $ feed ) ; $ xml -> save ( ) ; }
Renders the feed

@param \Nekland\Bundle\FeedBundle\Feed $feed
@return void
Renders the feed