Checks whether the serializer can encode to given format
string $format format name:
Boolean
Overrides EncoderInterface::supportsEncoding
public function supportsEncoding($format) {
try {
$this
->getEncoder($format);
} catch (RuntimeException $e) {
return false;
}
return true;
}