for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Happyr\TranslationBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
/**
* This command is good to run before you ship your code to production.
*/
class DownloadCommand extends ContainerAwareCommand
{
* {@inheritdoc}
protected function configure()
$this
->setName('happyr:translation:download')
->setDescription('Replace your local files with the latest from your translation SaaS.');
}
protected function execute(InputInterface $input, OutputInterface $output)
$this->getContainer()->get('happyr.translation')->downloadAllTranslations();
$output->writeln('Download complete');