I want to generate XML feeds in Symfony 4 and I think that the FeedBundle is more than enough for me. I installed and configured it without any problem, my problem comes when I want to call the service from the Controller, his documentation tells to do the following:
$feed = $this->get('eko_feed.feed.manager')->get('article');
But in Symfony 4 that's not the right way to do as far as I know. Could someone let me know the right way to do it? I only need to know how to call the service from the controller, nothing more.
Thanks guys
You can try inject service in controller.
Try adding in services.yaml:
In controller:
See here