Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer::getCacheKey PHP Méthode

getCacheKey() private méthode

Gets the cache key to use.
private getCacheKey ( string | null $format, array $context ) : boolean | string
$format string | null
$context array
Résultat boolean | string
    private function getCacheKey($format, array $context)
    {
        try {
            return md5($format . serialize($context));
        } catch (\Exception $exception) {
            // The context cannot be serialized, skip the cache
            return false;
        }
    }