setInterval(self::INTERVAL); $this->fileCache = $fileCache; $this->logger = $logger; } protected function run($argument) : void { try { $this->fileCache->gc(); } catch (NotPermittedException $e) { $this->logger->error('Could not collect garbage: '.$e->getMessage()); } } }