for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Alpixel\Bundle\MediaBundle\Command;
use Alpixel\Bundle\CronBundle\Annotation\CronJob;
use Liip\ImagineBundle\Command\RemoveCacheCommand;
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
/**
* @CronJob("P7D")
*/
class LiipImagineCleanupCommand extends RemoveCacheCommand
{
public function configure()
parent::configure();
$this->setName('alpixel:media:liip_cleanup')
->setDescription('Cleaning liip cache folders');
}
public function execute(InputInterface $input, OutputInterface $output)
if (count($input->getArguments()) === 0) {
$definition = $this->getDefinition();
$input = new ArgvInput(null, $definition);
return parent::execute($input, $output);