Cache\Bridge\DoctrineCacheBridge::normalizeKey PHP Method

normalizeKey() private method

We need to make sure we do not use any characters not supported.
private normalizeKey ( string $key ) : string
$key string
return string
    private function normalizeKey($key)
    {
        if (preg_match('|[\\{\\}\\(\\)/\\\\@\\:]|', $key)) {
            return preg_replace('|[\\{\\}\\(\\)/\\\\@\\:]|', '_', $key);
        }
        return $key;
    }