src/Graviton/ExceptionBundle/Listener/RestExceptionListener.php
public function getSerializedContent($content)
    {
        $serializationContext = clone $this->serializationContext;

        return $this->serializer->serialize(
            $content,
            'json',
            $serializationContext
        );
    }
public function getSerializedContent($content)
    {
        $serializationContext = clone $this->serializationContext;

        return $this->serializer->serialize(
            $content,
            'json',
            $serializationContext
        );
    }
public function getSerializedContent ( $ content ) { $ serializationContext = clone $ this -> serializationContext ; return $ this -> serializer -> serialize ( $ content , 'json' , $ serializationContext ) ; }
Serialize the given content

@param mixed $content Content

@return string $content Json content
Serialize the given content