Copied!

Decoder delegating the decoding to a chain of decoders.

CloneableInstantiable
Methods
public __construct(array $decoders = [])
public final decode(string $data, string $format, array $context = []) : ?mixed
 
    public supportsDecoding(string $format, array $context = []) : bool
     
      Properties
      private array $decoderByFormat
      private array $decoders
      Methods
      private getDecoder(string $format, array $context) : Symfony\Component\Serializer\Encoder\DecoderInterface
       

      Gets the decoder supporting the format.

      • throws RuntimeException if no decoder is found
      © 2022 Bruce Wells
      Search Namespaces \ Classes
      Configuration