Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/serializer/Normalizer/PropertyNormalizer.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 129ea1e6d783 |
children |
comparison
equal
deleted
inserted
replaced
17:129ea1e6d783 | 18:af1871eacc83 |
---|---|
100 $reflectionObject = new \ReflectionObject($object); | 100 $reflectionObject = new \ReflectionObject($object); |
101 $attributes = []; | 101 $attributes = []; |
102 | 102 |
103 do { | 103 do { |
104 foreach ($reflectionObject->getProperties() as $property) { | 104 foreach ($reflectionObject->getProperties() as $property) { |
105 if (!$this->isAllowedAttribute($reflectionObject->getName(), $property->name)) { | 105 if (!$this->isAllowedAttribute($reflectionObject->getName(), $property->name, $format, $context)) { |
106 continue; | 106 continue; |
107 } | 107 } |
108 | 108 |
109 $attributes[] = $property->name; | 109 $attributes[] = $property->name; |
110 } | 110 } |