protected function getRegexes()
{
if (empty($this->regexList)) {
$cacheKey = 'DeviceDetector-' . DeviceDetector::VERSION . 'regexes-' . $this->getName();
$cacheKey = preg_replace('/([^a-z0-9_-]+)/i', '', $cacheKey);
$this->regexList = $this->getCache()->fetch($cacheKey);
if (empty($this->regexList)) {
$this->regexList = $this->getYamlParser()->parseFile($this->getRegexesDirectory() . DIRECTORY_SEPARATOR . $this->fixtureFile);
$this->getCache()->save($cacheKey, $this->regexList);
}
}
return $this->regexList;
}