PHP Class Symfony\Component\Serializer\Encoder\YamlEncoder

Author: Kévin Dunglas ([email protected])
Inheritance: implements Symfony\Component\Serializer\Encoder\EncoderInterface, implements Symfony\Component\Serializer\Encoder\DecoderInterface
Datei anzeigen Open project: symfony/symfony Class Usage Examples

Public Methods

Method Description
__construct ( Symfony\Component\Yaml\Dumper $dumper = null, Parser $parser = null, array $defaultContext = [] )
decode ( $data, $format, array $context = [] )
encode ( $data, $format, array $context = [] )
supportsDecoding ( $format )
supportsEncoding ( $format )

Method Details

__construct() public method

public __construct ( Symfony\Component\Yaml\Dumper $dumper = null, Parser $parser = null, array $defaultContext = [] )
$dumper Symfony\Component\Yaml\Dumper
$parser Symfony\Component\Yaml\Parser
$defaultContext array

decode() public method

public decode ( $data, $format, array $context = [] )
$context array

encode() public method

public encode ( $data, $format, array $context = [] )
$context array

supportsDecoding() public method

public supportsDecoding ( $format )

supportsEncoding() public method

public supportsEncoding ( $format )