addReport(Report::createSuccess('Models were successfully synchronized.')); try { $this->getKeyValueCache()->delete(I18nHelper::AVAILABLE_LANGS_CACHEKEY); } catch (InvalidArgumentException $exception) { $this->addReport(Report::createInfo('Key-Value cache does not contain available languages.')); } } public function down(Schema $schema): void { $this->addReport(Report::createInfo('Nothing to downgrade.')); } private function getKeyValueCache(): KeyValueCache { return $this->getServiceLocator()->get(KeyValueCache::SERVICE_ID); } }