You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewRuntimeException('No encoder registered. Has JSON API support been initialised for the current request?');
198
+
thrownewRuntimeException('No encoder registered. Has a codec matcher been registered?');
184
199
}
185
200
186
201
return$this->encoder;
@@ -200,7 +215,7 @@ public function hasEncoder()
200
215
publicfunctiongetEncoderMediaType()
201
216
{
202
217
if (!$this->hasEncoder()) {
203
-
thrownewRuntimeException('No encoder registered. Has JSON API support been initialised for the current request?');
218
+
thrownewRuntimeException('No encoder registered. Has a codec matcher been registered?');
204
219
}
205
220
206
221
return$this->encoderMediaType;
@@ -212,7 +227,7 @@ public function getEncoderMediaType()
212
227
publicfunctiongetDecoder()
213
228
{
214
229
if (!$this->decoderinstanceof DecoderInterface) {
215
-
thrownewRuntimeException('No decoder registered. Has JSON API support been initialised for the current request, and has the current request supplied content?');
230
+
thrownewRuntimeException('No decoder registered. Has a codec matcher been registered?');
216
231
}
217
232
218
233
return$this->decoder;
@@ -232,7 +247,7 @@ public function hasDecoder()
232
247
publicfunctiongetDecoderMediaType()
233
248
{
234
249
if (!$this->hasDecoder()) {
235
-
thrownewRuntimeException('No decoder registered. Has JSON API support been initialised for the current request, and has the current request supplied content?');
250
+
thrownewRuntimeException('No decoder registered. Has a codec matcher been registered?');
236
251
}
237
252
238
253
return$this->decoderMediaType;
@@ -258,4 +273,23 @@ public function hasParameters()
0 commit comments