| @@ 29-38 (lines=10) @@ | ||
| 26 | { |
|
| 27 | use BundleTrait; |
|
| 28 | ||
| 29 | protected function configure() |
|
| 30 | { |
|
| 31 | $this |
|
| 32 | ->setName('translation:delete-obsolete') |
|
| 33 | ->setDescription('Delete all translations marked as obsolete.') |
|
| 34 | ->addArgument('configuration', InputArgument::OPTIONAL, 'The configuration to use', 'default') |
|
| 35 | ->addArgument('locale', InputArgument::OPTIONAL, 'The locale ot use. If omitted, we use all configured locales.', null) |
|
| 36 | ->addOption('bundle', 'b', InputOption::VALUE_REQUIRED, 'The bundle you want remove translations from.') |
|
| 37 | ; |
|
| 38 | } |
|
| 39 | ||
| 40 | protected function execute(InputInterface $input, OutputInterface $output) |
|
| 41 | { |
|
| @@ 30-39 (lines=10) @@ | ||
| 27 | { |
|
| 28 | use BundleTrait; |
|
| 29 | ||
| 30 | protected function configure() |
|
| 31 | { |
|
| 32 | $this |
|
| 33 | ->setName('translation:download') |
|
| 34 | ->setDescription('Replace local messages with messages from remote') |
|
| 35 | ->addArgument('configuration', InputArgument::OPTIONAL, 'The configuration to use', 'default') |
|
| 36 | ->addOption('cache', null, InputOption::VALUE_NONE, 'Clear the cache if the translations have changed') |
|
| 37 | ->addOption('bundle', 'b', InputOption::VALUE_REQUIRED, 'The bundle you want update translations from.') |
|
| 38 | ; |
|
| 39 | } |
|
| 40 | ||
| 41 | protected function execute(InputInterface $input, OutputInterface $output) |
|
| 42 | { |
|