lexik / LexikTranslationBundle

This Symfony bundle allow to import translation files content into the database and provide a GUI to edit translations.
MIT License
422 stars 259 forks source link

Fix deprecation in Symfony 4.4. #361

Closed ikoene closed 3 years ago

ikoene commented 4 years ago

Description

Fixes deprecation in Symfony 4.4.

The 'Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand' class is deprecated since Symfony 4.2, use 'Symfony\Component\Console\Command\Command' with dependency injection instead.

This will allow projects using the LexikTranslationBundle to upgrade to Symfony 5.

94noni commented 3 years ago

@ikoene you can also make the execute() returns 0 :)

bartmcleod commented 3 years ago

This has been fixed in the 4.4 branch and master.