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

Commit10542af

Browse files
committed
feature#42133 [FrameworkBundle] Remove deprecated options in translation:update command (javiereguiluz)
This PR was squashed before being merged into the 6.0 branch.Discussion----------[FrameworkBundle] Remove deprecated options in translation:update command| Q | A| ------------- | ---| Branch? | 6.0| Bug fix? | no| New feature? | no| Deprecations? | no| Tickets | -| License | MIT| Doc PR | -Commits-------802c2a5 [FrameworkBundle] Remove deprecated options in translation:update command
2 parents71b90db +802c2a5 commit10542af

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

‎src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ CHANGELOG
77
* Remove the`lock.RESOURCE_NAME` and`lock.RESOURCE_NAME.store` services and the`lock`,`LockInterface`,`lock.store` and`PersistingStoreInterface` aliases, use`lock.RESOURCE_NAME.factory`,`lock.factory` or`LockFactory` instead
88
* The`form.factory`,`form.type.file`,`translator`,`security.csrf.token_manager`,`serializer`,
99
`cache_clearer`,`filesystem` and`validator` services are now private
10+
* Remove the`output-format` and`xliff-version` options from`TranslationUpdateCommand`
1011

1112
5.4
1213
---

‎src/Symfony/Bundle/FrameworkBundle/Command/TranslationUpdateCommand.php‎

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,11 @@ protected function configure()
7777
newInputArgument('locale', InputArgument::REQUIRED,'The locale'),
7878
newInputArgument('bundle', InputArgument::OPTIONAL,'The bundle name or directory where to load the messages'),
7979
newInputOption('prefix',null, InputOption::VALUE_OPTIONAL,'Override the default prefix','__'),
80-
newInputOption('output-format',null, InputOption::VALUE_OPTIONAL,'Override the default output format (deprecated)'),
8180
newInputOption('format',null, InputOption::VALUE_OPTIONAL,'Override the default output format','xlf12'),
8281
newInputOption('dump-messages',null, InputOption::VALUE_NONE,'Should the messages be dumped in the console'),
8382
newInputOption('force',null, InputOption::VALUE_NONE,'Should the update be done'),
8483
newInputOption('clean',null, InputOption::VALUE_NONE,'Should clean not found messages'),
8584
newInputOption('domain',null, InputOption::VALUE_OPTIONAL,'Specify the domain to update'),
86-
newInputOption('xliff-version',null, InputOption::VALUE_OPTIONAL,'Override the default xliff version (deprecated)'),
8785
newInputOption('sort',null, InputOption::VALUE_OPTIONAL,'Return list of messages sorted alphabetically','asc'),
8886
newInputOption('as-tree',null, InputOption::VALUE_OPTIONAL,'Dump the messages as a tree-like structure: The given value defines the level where to switch to inline YAML'),
8987
])
@@ -136,16 +134,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int
136134
return1;
137135
}
138136

139-
$format =$input->getOption('output-format') ?:$input->getOption('format');
140-
$xliffVersion =$input->getOption('xliff-version') ??'1.2';
141-
142-
if ($input->getOption('xliff-version')) {
143-
trigger_deprecation('symfony/framework-bundle','5.3','The "--xliff-version" option is deprecated, use "--format=xlf%d" instead.',10 *$xliffVersion);
144-
}
145-
146-
if ($input->getOption('output-format')) {
147-
trigger_deprecation('symfony/framework-bundle','5.3','The "--output-format" option is deprecated, use "--format=xlf%d" instead.',10 *$xliffVersion);
148-
}
137+
$format =$input->getOption('format');
138+
$xliffVersion ='1.2';
149139

150140
switch ($format) {
151141
case'xlf20':$xliffVersion ='2.0';

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp