@@ 60-69 (lines=10) @@ | ||
57 | parent::__construct(); |
|
58 | } |
|
59 | ||
60 | protected function configure() |
|
61 | { |
|
62 | $this |
|
63 | ->setName(self::$defaultName) |
|
64 | ->setDescription('Replace local messages with messages from remote') |
|
65 | ->addArgument('configuration', InputArgument::OPTIONAL, 'The configuration to use', 'default') |
|
66 | ->addOption('cache', null, InputOption::VALUE_NONE, 'Clear the cache if the translations have changed') |
|
67 | ->addOption('bundle', 'b', InputOption::VALUE_REQUIRED, 'The bundle you want update translations from.') |
|
68 | ; |
|
69 | } |
|
70 | ||
71 | protected function execute(InputInterface $input, OutputInterface $output) |
|
72 | { |
@@ 70-79 (lines=10) @@ | ||
67 | parent::__construct(); |
|
68 | } |
|
69 | ||
70 | protected function configure() |
|
71 | { |
|
72 | $this |
|
73 | ->setName(self::$defaultName) |
|
74 | ->setDescription('Delete all translations marked as obsolete.') |
|
75 | ->addArgument('configuration', InputArgument::OPTIONAL, 'The configuration to use', 'default') |
|
76 | ->addArgument('locale', InputArgument::OPTIONAL, 'The locale to use. If omitted, we use all configured locales.', null) |
|
77 | ->addOption('bundle', 'b', InputOption::VALUE_REQUIRED, 'The bundle you want remove translations from.') |
|
78 | ; |
|
79 | } |
|
80 | ||
81 | protected function execute(InputInterface $input, OutputInterface $output) |
|
82 | { |