Symfony\Component\Serializer\Encoder\ChainEncoder::getEncoder
Gets the encoder supporting the format.
Signature
private function getEncoder(string
$format )
Parameters
$format
— string
Returns
- EncoderInterface
Errors/Exceptions
-
RuntimeException
- if no encoder is found