Skip to content

Commit 3ba0014

Browse files
dunglasnicolas-grekas
authored andcommitted
[Serializer] Remove AbstractObjectNormalizer::isAttributeToNormalize
1 parent e57bb52 commit 3ba0014

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

Normalizer/AbstractObjectNormalizer.php

Lines changed: 0 additions & 14 deletions
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)