Newscoop\Services\Plugins\ManagerService::clearCache PHP Метод

clearCache() приватный Метод

Clear cache after plugin installation
private clearCache ( Symfony\Component\Console\Output\OutputInterface $output )
$output Symfony\Component\Console\Output\OutputInterface
    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();
    }