php/Controllers/API/GenericEntityFetchController.php 1 location
|
@@ 142-149 (lines=8) @@
|
139 |
|
/** @var array $normalizedEntity */ |
140 |
|
$normalizedEntity = array(); |
141 |
|
|
142 |
|
if ($this->normalizer instanceof NormalizerInterface) { |
143 |
|
$normalizedEntity = $this->normalizer->normalize($entity); |
144 |
|
|
145 |
|
} else { |
146 |
|
$normalizer = new ObjectNormalizer(); |
147 |
|
|
148 |
|
$normalizedEntity = $normalizer->normalize($entity); |
149 |
|
} |
150 |
|
|
151 |
|
if (!is_array($normalizedEntity)) { |
152 |
|
throw new ErrorException("Result of normalize process must be an array!"); |
php/Controllers/API/GenericEntityListingController.php 1 location
|
@@ 138-145 (lines=8) @@
|
135 |
|
/** @var array $normalizedEntity */ |
136 |
|
$normalizedEntity = array(); |
137 |
|
|
138 |
|
if ($this->normalizer instanceof NormalizerInterface) { |
139 |
|
$normalizedEntity = $this->normalizer->normalize($entity); |
140 |
|
|
141 |
|
} else { |
142 |
|
$normalizer = new ObjectNormalizer(); |
143 |
|
|
144 |
|
$normalizedEntity = $normalizer->normalize($entity); |
145 |
|
} |
146 |
|
|
147 |
|
if (!is_array($normalizedEntity)) { |
148 |
|
throw new ErrorException("Result of normalize process must be an array!"); |