Yaml
class Yaml implements SerializationInterface (View source)
Provides a YAML serialization implementation.
Proxy implementation that will choose the best library based on availability.
Properties
| static protected SerializationInterface | $serializer | The YAML implementation to use. |
Methods
static string
encode(mixed $data)
Encodes data into the serialization format.
static mixed
decode(string $raw)
Decodes data from the serialization format.
static string
getFileExtension()
Gets the file extension for this serialization format.
static
getSerializer()
Determines which implementation to use for parsing YAML.
Details
static string
encode(mixed $data)
Encodes data into the serialization format.
static mixed
decode(string $raw)
Decodes data from the serialization format.
static string
getFileExtension()
Gets the file extension for this serialization format.
static protected
getSerializer()
Determines which implementation to use for parsing YAML.