Copied!

Adds the support of an extra $context parameter for the supportsEncoding method.

AbstractInterface
Methods
public abstract Symfony\Component\Serializer\Encoder\EncoderInterface::encode(?mixed $data, string $format, array $context = []) : string
 

Encodes data into the given format.

  • param mixed $data Data to encode
  • param string $format Format name
  • param array $context Options that normalizers/encoders have access to
  • throws \UnexpectedValueException
public abstract supportsEncoding(string $format, array $context = []) : bool
 
  • param array $context options that encoders have access to
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration