for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sylius\Bundle\ThemeBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
/**
* @author Kamil Kokot <[email protected]>
final class SynchronizeCommand extends ContainerAwareCommand
{
* {@inheritdoc}
protected function configure()
$this
->setName('sylius:theme:synchronize')
->setDescription('Synchronize themes.')
;
}
protected function execute(InputInterface $input, OutputInterface $output)
$output->write('Synchronizing themes... ');
$this->getContainer()->get('sylius.theme.synchronizer')->synchronize();
$output->writeln('Success!');