Copied!

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

  • author K√©vin Dunglas
  • deprecated since symfony/serializer 6.1, use EncoderInterface instead
Abstract Interface
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
© 2022 Bruce Wells
Search Namespaces \ Classes
Configuration