private function clearCache(SymfonyStyle $io, $env)
{
$io->section("Clearing cache ({$env})...");
$io->progressStart(1);
$input = $this->getEnvsInput($env);
$command = $this->getApplication()->find('cache:clear');
$cmdOutput = new BufferedOutput();
$returnCode = $command->run($input, $cmdOutput);
if ($returnCode !== 0) {
$io->error("cache:clear command failed. You may need to manually delete the cache folders.");
return;
}
$io->progressFinish();
}