Symfony\Component\Serializer\Serializer::supportsDecoding PHP Method

supportsDecoding() public method

public supportsDecoding ( $format )
    public function supportsDecoding($format)
    {
        try {
            $encoder = $this->getEncoder($format);
        } catch (\RuntimeException $e) {
            return false;
        }

        return $encoder instanceof DecoderInterface;
    }