Closed tacman closed 6 years ago
I added this to services.yaml:
FeedIo\FeedIo:
public: true
alias: feedio
And changed the typehint in the constructor to FeedIo, and it seems to work now.
Thank you for your feedback, I'll add it to the documentation
In fact, it's a bug.
FeedIo\FeedIo should be configured to allow autowiring in your application
This is probably easy, but I'm having a hard time figuring out how to use the FeedIo service properly in Symfony 4, where the container is not available.
I think it's just a matter of properly setting up the dependency injection in the class that needs it, but it's failing when I do this:
the error is
Maybe I need to set up something in services.yaml? Can you please provide an example.
Thanks!