/** * @param string $iniString */ public function convertString($iniString) { $iniParser = new IniParser(); $this->logger->info('start creating patterns from the ini data'); foreach ($iniParser->createPatterns($iniString) as $patternsHashList) { foreach ($patternsHashList as $subkey => $content) { if (!$this->cache->setItem('browscap.patterns.' . $subkey, $content, true)) { $this->logger->error('could not write pattern data "' . $subkey . '" to the cache'); } } } $this->logger->info('finished creating patterns from the ini data'); $this->logger->info('start creating data from the ini data'); foreach ($iniParser->createIniParts($iniString) as $patternsContentList) { foreach ($patternsContentList as $subkey => $content) { if (!$this->cache->setItem('browscap.iniparts.' . $subkey, $content, true)) { $this->logger->error('could not write property data "' . $subkey . '" to the cache'); } } } $this->logger->info('finished creating data from the ini data'); }