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