[Serializer] Remove AbstractObjectNormalizer::isAttributeToNormalize

This commit is contained in:
Kévin Dunglas 2016-11-15 22:34:49 +01:00 committed by Nicolas Grekas
parent 3918fff3d9
commit fea18aae41
2 changed files with 4 additions and 14 deletions

View File

@ -111,6 +111,10 @@ Serializer
deprecated and will not be supported in Symfony 4.0. You should use the
`CacheClassMetadataFactory` class instead.
* The `AbstractObjectNormalizer::isAttributeToNormalize()` method has been removed
because it was initially added by mistake, has never been used and is not tested
nor documented.
Translation
-----------

View File

@ -208,20 +208,6 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
*/
abstract protected function setAttributeValue($object, $attribute, $value, $format = null, array $context = array());
/**
* Should this attribute be normalized?
*
* @param mixed $object
* @param string $attributeName
* @param array $context
*
* @return bool
*/
protected function isAttributeToNormalize($object, $attributeName, &$context)
{
return !in_array($attributeName, $this->ignoredAttributes) && !$this->isMaxDepthReached(get_class($object), $attributeName, $context);
}
/**
* Validates the submitted data and denormalizes it.
*