[Sf4] Stop using ContainerAwareCommands
althaus opened this issue · 8 comments
Hi,
due to changes in Symfony the commands shouldn't access the container directly, but use service injection instead:
The "Tbbc\MoneyBundle\Command\RatioFetchCommand" class extends "Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand" that is deprecated since Symfony 4.2, use {@see Command} instead.
The "Tbbc\MoneyBundle\Command\RatioListCommand" class extends "Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand" that is deprecated since Symfony 4.2, use {@see Command} instead.
The "Tbbc\MoneyBundle\Command\RatioSaveCommand" class extends "Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand" that is deprecated since Symfony 4.2, use {@see Command} instead.
Cheers
Matthias
I don't think this bundle is being managed anymore. @philippe-levan
I've switched to my own fork to get it running with Sf4/5. :/
Can you share your package with everyone so we can start using your bundle? I think you can register your fork on packagist?
Thanks for all your contributions guys, sorry I only could only check this now.
It would be great to start checking Symfony 5 release, any PRs would be appreciated (and checked quickly!).
I made some updates in my fork (https://github.com/althaus/TbbcMoneyBundle/releases), but didn't check for BC as I just needed to get it working again.
Yes, I saw your fork, making something along same lines. I plan major release so support for some older php and symfony versions will also be dropped.
This is done and released