Copied!

Encodes YAML data.

Cloneable Instantiable
Constants
public Symfony\Component\Serializer\Encoder\YamlEncoder ::FORMAT = 'yaml'
public Symfony\Component\Serializer\Encoder\YamlEncoder ::PRESERVE_EMPTY_OBJECTS = 'preserve_empty_objects'
public Symfony\Component\Serializer\Encoder\YamlEncoder ::YAML_FLAGS = 'yaml_flags'
public Symfony\Component\Serializer\Encoder\YamlEncoder ::YAML_INDENT = 'yaml_indent'
public Symfony\Component\Serializer\Encoder\YamlEncoder ::YAML_INLINE = 'yaml_inline'
Methods
public __construct ( ? Symfony\Component\Yaml\Dumper $dumper = NULL , ? Symfony\Component\Yaml\Parser $parser = NULL , array $defaultContext = [ ] )
public decode ( string $data , string $format , array $context = [ ] ) : ? mixed
 
public encode ( ? mixed $data , string $format , array $context = [ ] ) : string
 
public supportsDecoding ( string $format ) : bool
 
public supportsEncoding ( string $format ) : bool
 
Constants
private Symfony\Component\Serializer\Encoder\YamlEncoder ::ALTERNATIVE_FORMAT = 'yml'
Properties
private $defaultContext
private $dumper
private $parser
© 2022 Bruce Wells
Search Namespaces \ Classes
Configuration