Copied!

Decoder delegating the decoding to a chain of decoders.

CloneableInstantiable
Methods
public __construct(array $decoders = [])
 
  • param \DecoderInterface[] $decoders
public final decode(string $data, string $format, array $context = []) : ?mixed
public supportsDecoding(string $format, array $context = []) : bool
Properties
private array $decoderByFormat = []
 
  • var array<string,array-key>
private readonly 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
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration