Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitef24b10

Browse files
liarcofabpot
authored andcommitted
[FrameworkBundle] Fixing TranslationUpdateCommand failure when using "--no-backup"
1 parent9eb3681 commitef24b10

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

‎src/Symfony/Bundle/FrameworkBundle/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`

‎src/Symfony/Bundle/FrameworkBundle/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
newInputOption('output-format',null, InputOption::VALUE_OPTIONAL,'Override the default output format','xlf'),
8080
newInputOption('dump-messages',null, InputOption::VALUE_NONE,'Should the messages be dumped in the console'),
8181
newInputOption('force',null, InputOption::VALUE_NONE,'Should the update be done'),
82-
newInputOption('no-backup',null, InputOption::VALUE_NONE,'Should backup be disabled'),
8382
newInputOption('clean',null, InputOption::VALUE_NONE,'Should clean not found messages'),
8483
newInputOption('domain',null, InputOption::VALUE_OPTIONAL,'Specify the domain to update'),
8584
newInputOption('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)

[8]ページ先頭

©2009-2025 Movatter.jp