private function clearCache($output)
{
$output->writeln('<info>remove ' . realpath($this->newsoopDir . 'cache/') . '/*</info>');
$process = new Process('rm -rf ' . realpath($this->newsoopDir . 'cache/') . '/*');
$process->setTimeout(3600);
$process->run(function ($type, $buffer) use($output) {
if ('err' === $type) {
$output->write('<error>' . $buffer . '</error>');
} else {
$output->write('<info>' . $buffer . '</info>');
}
});
if ($process->isSuccessful()) {
$output->writeln('<info>Cache cleared</info>');
}
$this->prepareCacheDir();
}