/** * {@inheritDoc} */ public function isSupported(\ReflectionProperty $property) { $cacheKey = 'property.converter.datetime.parameters'; $key = KeyGenerator::generateForProperty($property); $properties = $this->cache->get($cacheKey); if (null === $properties) { $properties = []; } if (!isset($properties[$key])) { $supports = $this->delegate->isSupported($property); $properties[$key] = $supports; $mustUpdateCache = true; } else { $supports = $properties[$key]; $mustUpdateCache = false; } if ($mustUpdateCache) { $this->cache->set($cacheKey, $properties); } return $supports; }
/** * {@inheritDoc} */ public function isSupported(\ReflectionProperty $property) { return $this->reader->isSupported($property); }