Files
FOSRest/Decoder/DecoderInterface.php
Lukas Kahwe Smith fc03a08873 move to using JMSSerializerBundle
- 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
2011-08-01 21:46:58 +02:00

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);
}