eko / FeedBundle

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

eko_feed.yml ignored on Symfony 5.3, php 8 #85

Closed mmeinert closed 3 years ago

mmeinert commented 3 years ago

Specified feed 'paints' is not defined in your configuration.

In : config/packages/eko_feed.yml

eko_feed:
    feeds:
        paints:
            title:       'My latest things'
            description: 'Here are my latetst things'
            link:        'https://whatever.com'
            encoding:    'utf-8'
            author:      'Myself'

(Tried with eko_feed.yaml filename too)

In the controller

    #[Route('/feed.rss', name: 'app_feed')]
    public function feed()
    {
        $realisations = $this->getDoctrine()->getRepository('App:Peinture')->findAll();

        $feed = $this->feedManager->get('paints');
        $feed->addFromArray($realisations);

        return new Response($feed->render('rss')); // or 'atom'
    }