Skip to content

Commit fea18aa

Browse files
dunglasnicolas-grekas
authored andcommitted
[Serializer] Remove AbstractObjectNormalizer::isAttributeToNormalize
1 parent 3918fff commit fea18aa

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

UPGRADE-3.1.md

+4
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ Serializer
111111
deprecated and will not be supported in Symfony 4.0. You should use the
112112
`CacheClassMetadataFactory` class instead.
113113

114+
* The `AbstractObjectNormalizer::isAttributeToNormalize()` method has been removed
115+
because it was initially added by mistake, has never been used and is not tested
116+
nor documented.
117+
114118
Translation
115119
-----------
116120

src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php

-14
Original file line numberDiff line numberDiff line change
@@ -208,20 +208,6 @@ public function denormalize($data, $class, $format = null, array $context = arra
208208
*/
209209
abstract protected function setAttributeValue($object, $attribute, $value, $format = null, array $context = array());
210210

211-
/**
212-
* Should this attribute be normalized?
213-
*
214-
* @param mixed $object
215-
* @param string $attributeName
216-
* @param array $context
217-
*
218-
* @return bool
219-
*/
220-
protected function isAttributeToNormalize($object, $attributeName, &$context)
221-
{
222-
return !in_array($attributeName, $this->ignoredAttributes) && !$this->isMaxDepthReached(get_class($object), $attributeName, $context);
223-
}
224-
225211
/**
226212
* Validates the submitted data and denormalizes it.
227213
*

0 commit comments

Comments
 (0)