php-translation / symfony-bundle

Symfony integration for Translations
MIT License
327 stars 94 forks source link

Symfony4 doesn't pick up commands automatically #188

Closed rpkamp closed 6 years ago

rpkamp commented 6 years ago

Unlike earlier versions, Symfony 4 does not automatically register commands in the Bundle\Command namespace, so these should be registered by the bundle explicitly.

For those with the same problem, a temporary workaround is to register them by adding this to your service definition:

Translation\Bundle\Command\:
    resource: 'path/to/vendor/php-translation/symfony-bundle/Command/*'
    tags: [console.command]
mvrhov commented 6 years ago

Could you tell us what exactly seems to be a problem? Or debug this.... as this is already done see Resources\config\console.yaml and at least for me it's working

rpkamp commented 6 years ago

I was still on version 0.5 and that doesn't have the console.yaml yet. Upgrading to 0.6.1 fixed my problem. Thanks!