/** * @param array $translations * @param array $contextDescriptions * @param $path */ private function registerAllTranslations(array $translations, array $contextDescriptions, $path) { foreach ($this->translateFinder->select($path) as $keyWithNamespace => $parameters) { $this->storage->ensurePresence(String::find($keyWithNamespace, $path, $translations, $contextDescriptions)); } }