Skip to content

Commit ec71f32

Browse files
liarcofabpot
authored andcommitted
[FrameworkBundle] Fixing TranslationUpdateCommand failure when using "--no-backup"
1 parent b5f961a commit ec71f32

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ CHANGELOG
33

44
5.1.0
55
-----
6-
6+
* Removed `--no-backup` option from `translation:update` command (broken since `5.0.0`)
77
* Added link to source for controllers registered as named services
88
* Added link to source on controller on `router:match`/`debug:router` (when `framework.ide` is configured)
99
* Added the `framework.router.default_uri` configuration option to configure the default `RequestContext`

Command/TranslationUpdateCommand.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ protected function configure()
7979
new InputOption('output-format', null, InputOption::VALUE_OPTIONAL, 'Override the default output format', 'xlf'),
8080
new InputOption('dump-messages', null, InputOption::VALUE_NONE, 'Should the messages be dumped in the console'),
8181
new InputOption('force', null, InputOption::VALUE_NONE, 'Should the update be done'),
82-
new InputOption('no-backup', null, InputOption::VALUE_NONE, 'Should backup be disabled'),
8382
new InputOption('clean', null, InputOption::VALUE_NONE, 'Should clean not found messages'),
8483
new InputOption('domain', null, InputOption::VALUE_OPTIONAL, 'Specify the domain to update'),
8584
new InputOption('xliff-version', null, InputOption::VALUE_OPTIONAL, 'Override the default xliff version', '1.2'),
@@ -283,10 +282,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
283282
$resultMessage = sprintf('%d message%s successfully extracted', $extractedMessagesCount, $extractedMessagesCount > 1 ? 's were' : ' was');
284283
}
285284

286-
if (true === $input->getOption('no-backup')) {
287-
$this->writer->disableBackup();
288-
}
289-
290285
// save the files
291286
if (true === $input->getOption('force')) {
292287
$io->comment('Writing files...');

0 commit comments

Comments
 (0)