8000 [FrameworkBundle] partially reverted previous merge · Ouark/symfony@dc51984 · GitHub
[go: up one dir, main page]

Skip to content

Commit dc51984

Browse files
committed
[FrameworkBundle] partially reverted previous merge
1 parent 98070d5 commit dc51984

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@
2626
*/
2727
class TranslationUpdateCommand extends ContainerAwareCommand
2828
{
29-
const RETURN_CODE_MISSING_OPTIONS = 1;
30-
31-
const RETURN_CODE_UNSUPPORTED_FORMAT = 2;
32-
3329
/**
3430
* Compiled catalogue of messages.
3531
* @var MessageCatalogue
@@ -86,7 +82,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
8682
if ($input->getOption('force') !== true && $input->getOption('dump-messages') !== true) {
8783
$output->writeln('<info>You must choose one of --force or --dump-messages</info>');
8884

89-
return self::RETURN_CODE_MISSING_OPTIONS;
85+
return 1;
9086
}
9187

9288
// check format
@@ -96,7 +92,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
9692
$output->writeln('<error>Wrong output format</error>');
9793
$output->writeln('Supported formats are '.implode(', ', $supportedFormats).'.');
9894

99-
return self::RETURN_CODE_UNSUPPORTED_FORMAT;
95+
return 1;
10096
}
10197

10298
// get bundle directory

0 commit comments

Comments
 (0)
0