[Translation] added an --all option to the debug:translation command #14237#14320
[Translation] added an --all option to the debug:translation command #14237#14320sgehrig wants to merge 1 commit intosymfony:2.7from
Conversation
There was a problem hiding this comment.
Why add line break here ? we can do $loader = $this->getContainer()->get('translation.loader');
b388239 to
38cb884
Compare
There was a problem hiding this comment.
it should be $input->getOption('all')
There was a problem hiding this comment.
remove extra spaces $translator =
664d1ab to
9ae342d
Compare
There was a problem hiding this comment.
You need to fall back to TableHelper when the Console component is previous to 2.4.
There was a problem hiding this comment.
That hasn't changed from the previous implementation. I'm not fully aware of release processes and required BC compatibility in Symphony, but as this is a 2.7 (or rather 2.8 - see @fabpot's comment below) feature, I don't think a compatibility with Console 2.4 is relevant here.
@aitboudad?
There was a problem hiding this comment.
@sgehrig use $table = $this->getHelperSet()->get('table'); instead :)
There was a problem hiding this comment.
@sgehrig I mean use $table = new Table($output);
|
If merged, should be in 2.8. |
There was a problem hiding this comment.
white-line before return (you can use php-cs-fixer)
|
👍 |
|
@aitboudad: Anything more I need to do? |
|
@sgehrig only one ;) , use |
|
@aitboudad Done. Thanks for your patience ;-) |
|
@symfony/deciders Is it ok for you? |
There was a problem hiding this comment.
Imho it would be better to add them in alphabetical order.
|
Fixed those coding style issues. They resulted from the rebase merge. |
|
@sgehrig Thanks, can you please also revert the changes to the other |
|
Need to get used to the Symfony code guidelines... ;-) Unnecessary changes should have been reverted... |
|
👍 @sgehrig I didn't want to bother you. It's just easier to track changes in the future (for example when using |
|
@xabbuh No problem... ;-) |
|
Thank you @sgehrig. |
…lation command #14237 (sgehrig) This PR was submitted for the 2.7 branch but it was merged into the 2.8 branch instead (closes #14320). Discussion ---------- [Translation] added an --all option to the debug:translation command #14237 | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #14237 | License | MIT | Doc PR | - - [ ] submit changes to the documentation This PR adds an `--all` option the `debug:translation` command to enable debugging translations in all registered bundles *AND* the app directory. Commits ------- 0e7fe79 added the --all option to the debug:translation command
This PR adds an
--alloption thedebug:translationcommand to enable debugging translations in all registered bundles AND the app directory.