Sulu\Bundle\MediaBundle\Command\ClearCacheCommand::execute PHP Method

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        /** @var FormatCacheClearerInterface $cacheClearer */
        $cacheClearer = $this->getContainer()->get('sulu_media.format_cache_clearer');
        $cache = $input->getArgument('cache');
        $output->writeln('Clearing the Sulu media format cache.');
        $cacheClearer->clear($cache);
    }
ClearCacheCommand