php/Controllers/API/GenericEntityListingController.php 1 location
|
@@ 151-156 (lines=6) @@
|
148 |
|
/** @var string $serializedEntity */ |
149 |
|
$serializedEntity = ""; |
150 |
|
|
151 |
|
if ($this->encoder instanceof EncoderInterface) { |
152 |
|
$serializedEntity = $this->encoder->encode($resultEntries, $this->format); |
153 |
|
|
154 |
|
} else { |
155 |
|
$serializedEntity = json_encode($resultEntries); |
156 |
|
} |
157 |
|
|
158 |
|
return new Response($serializedEntity); |
159 |
|
} |
php/Controllers/API/GenericEntityFetchController.php 1 location
|
@@ 141-146 (lines=6) @@
|
138 |
|
/** @var string $serializedEntity */ |
139 |
|
$serializedEntity = ""; |
140 |
|
|
141 |
|
if ($this->encoder instanceof EncoderInterface) { |
142 |
|
$serializedEntity = $this->encoder->encode($normalizedEntity, $this->format); |
143 |
|
|
144 |
|
} else { |
145 |
|
$serializedEntity = json_encode($normalizedEntity); |
146 |
|
} |
147 |
|
|
148 |
|
return new Response($serializedEntity); |
149 |
|
} |