mirror of
https://github.com/FriendsOfSymfony/FOSRest.git
synced 2026-04-23 16:28:10 +02:00
fc03a08873
- 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
295 B
PHP
20 lines
295 B
PHP
<?php
|
|
|
|
namespace FOS\RestBundle\Decoder;
|
|
|
|
/**
|
|
* Encodes JSON data
|
|
*
|
|
* @author Jordi Boggiano <j.boggiano@seld.be>
|
|
*/
|
|
class Jsondecoder implements DecoderInterface
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function decode($data)
|
|
{
|
|
return json_decode($data, true);
|
|
}
|
|
}
|