| @@ 28-35 (lines=8) @@ | ||
| 25 | */ |
|
| 26 | private $container; |
|
| 27 | ||
| 28 | protected function configure() |
|
| 29 | { |
|
| 30 | $this |
|
| 31 | ->setName('translation:extract') |
|
| 32 | ->setDescription('Extract translations from source code.') |
|
| 33 | ->addArgument('configuration', InputArgument::OPTIONAL, 'The configuration to use', 'default') |
|
| 34 | ->addArgument('locale', InputArgument::OPTIONAL, 'The locale ot use. If omitted, we use all configured locales.', false); |
|
| 35 | } |
|
| 36 | ||
| 37 | protected function execute(InputInterface $input, OutputInterface $output) |
|
| 38 | { |
|
| @@ 30-37 (lines=8) @@ | ||
| 27 | */ |
|
| 28 | private $container; |
|
| 29 | ||
| 30 | protected function configure() |
|
| 31 | { |
|
| 32 | $this |
|
| 33 | ->setName('translation:delete-obsolete') |
|
| 34 | ->setDescription('Delete all translations marked as obsolete.') |
|
| 35 | ->addArgument('configuration', InputArgument::OPTIONAL, 'The configuration to use', 'default') |
|
| 36 | ->addArgument('locale', InputArgument::OPTIONAL, 'The locale ot use. If omitted, we use all configured locales.', null); |
|
| 37 | } |
|
| 38 | ||
| 39 | protected function execute(InputInterface $input, OutputInterface $output) |
|
| 40 | { |
|