Symfony\Component\Serializer\Serializer::decode PHP Method

decode() final public method

final public decode ( $data, $format )
    public final function decode($data, $format)
    {
        return $this->getEncoder($format)->decode($data, $format);
    }

Usage Example

Beispiel #1
0
 public function deserialize($data, $type, $format, array $context = array())
 {
     if (!$type) {
         $temp = $this->serializer->decode($data, $format, $context);
         $type = isset($this->map[$temp['type']]) ? $this->map[$temp['type']] : 'Bangpound\\oEmbed\\Response\\Response';
     }
     return $this->serializer->deserialize($data, $type, $format, $context);
 }
All Usage Examples Of Symfony\Component\Serializer\Serializer::decode