mirror of
https://github.com/FriendsOfSymfony/FOSRest.git
synced 2026-03-25 17:22:24 +01:00
- there are no more encoders and all serializer configuration needs to be done via JMSSerializerBundle - instead one can now register decoders for the BodyListener - formats now define of a format uses templating or not - normalizers still need to be rewritten to follow whatever approach JMSSerializerBundle uses
20 lines
320 B
PHP
20 lines
320 B
PHP
<?php
|
|
|
|
namespace FOS\RestBundle\Decoder;
|
|
|
|
/**
|
|
* Defines the interface of decoders
|
|
*
|
|
* @author Jordi Boggiano <j.boggiano@seld.be>
|
|
*/
|
|
interface DecoderInterface
|
|
{
|
|
/**
|
|
* Decodes a string into PHP data
|
|
*
|
|
* @param string $data data to decode
|
|
* @return mixed
|
|
*/
|
|
function decode($data);
|
|
}
|