Encoder delegating the decoding to a chain of encoders.
- author Jordi Boggiano
- author Johannes M.
Schmitt - author Lukas Kahwe Smith
- final
CloneableInstantiable
| Methods |
public __construct(array $encoders = [])
|
| public final encode(?mixed $data, string $format, array $context = []) : string |
| public needsNormalization(string $format, array $context = []) : bool Checks whether the normalization is needed for the given format. |
| public supportsEncoding(string $format, array $context = []) : bool |
| Properties |
private array $encoderByFormat = []
|
| private readonly array $encoders |
| Methods |
| private getEncoder(string $format, array $context) : Symfony Gets the encoder supporting the format.
|