Open PaddyLock opened 5 years ago
@PaddyLock do you have the mopa bootstrap bundle? I was looking for people with a similar issue. This bundle doesn't load the command in a specific case: https://github.com/schmittjoh/JMSTranslationBundle/blob/7bdd5e2feae5c794af1306a408671a998bb84ca5/DependencyInjection/JMSTranslationExtension.php#L36-L38
The mopa bootstrap bundle requires the mopa/composer-bridge: https://github.com/phiamo/MopaBootstrapBundle/blob/419bb11abd5940e0957ca6ed254aec0ae402e382/composer.json#L29
This bridge requires the symfony class-loader and thus causes the class loader to exist and not load this command https://github.com/phiamo/MopaComposerBridge/blob/58661a5c588ce9c3eff7d36c4030f6caa4de1ae2/composer.json#L20
If that's not the case, find out why the class loader is installed and try to remove it.
Question for the maintainers: Is this case really necessary to not load the command if the classloader is loaded?
@linaori Yes I do have mopa bootstrap bundle installed.
I ended up using this package instead
And use this to extract
php bin/console translation:extract app en
However, there is also the built in symfony extractor in the docs
I'm not sure which method is recommended now, I haven't looked at this for a while.
Expected behavior
Should be able to run extraction with this command
php bin/console translation:extract en --config=app --output-format=xliff --enable-extractor=jms_i18n_routing
Actual behavior
Steps to reproduce
use following config
also installed jms/i18n-routing-bundle 3.0.2 with following config
then run the command above.
Also if I run
php bin/console list
I only see translation:update
could there be a conflict in the namespace?