src/Command/UploadCommand.php
protected function execute(InputInterface $input, OutputInterface $output)
    {
        if ($input->getOption('force')) {
            $this->getContainer()->get('happyr.translation')->uploadAllTranslations();
            $output->writeln('Upload complete');
        } else {
            $output->writeln('<error>ATTENTION:</error> This operation should not be executed in a production environment.');
            $output->writeln('');
            $output->writeln(sprintf('<info>This is going to replace every translations on your translator service.</info>'));
            $output->writeln('Please run the operation with --force to execute');
            return self::RETURN_CODE_NO_FORCE;
        }
    }
protected function execute(InputInterface $input, OutputInterface $output)
    {
        if ($input->getOption('force')) {
            $this->getContainer()->get('happyr.translation')->uploadAllTranslations();
            $output->writeln('Upload complete');
        } else {
            $output->writeln('<error>ATTENTION:</error> This operation should not be executed in a production environment.');
            $output->writeln('');
            $output->writeln(sprintf('<info>This is going to replace every translations on your translator service.</info>'));
            $output->writeln('Please run the operation with --force to execute');
            return self::RETURN_CODE_NO_FORCE;
        }
    }
{@inheritdoc}