src/Graviton/ProxyBundle/Transformation/BodyMapping.php
public function transformRequest(Request $requestIn, Request $requestOut)
    {
        $requestOut = Request::create(
            $requestOut->getUri(),
            $requestOut->getMethod(),
            [],
            [],
            [],
            [],
            json_encode(
                $this->transformer->transform(json_decode($requestIn->getContent()), $this->mapping)
            )
        );
        return $requestOut;
    }
public function transformRequest(Request $requestIn, Request $requestOut)
    {
        $requestOut = Request::create(
            $requestOut->getUri(),
            $requestOut->getMethod(),
            [],
            [],
            [],
            [],
            json_encode(
                $this->transformer->transform(json_decode($requestIn->getContent()), $this->mapping)
            )
        );
        return $requestOut;
    }
public function transformRequest ( Request $ requestIn , Request $ requestOut ) { $ requestOut = Request :: create ( $ requestOut -> getUri ( ) , $ requestOut -> getMethod ( ) , [ ] , [ ] , [ ] , [ ] , json_encode ( $ this -> transformer -> transform ( json_decode ( $ requestIn -> getContent ( ) ) , $ this -> mapping ) ) ) ; return $ requestOut ; }
Transforms a request

@param  Request $requestIn  The original request object
@param  Request $requestOut The request object to transform
@return Request The transformed request
Transforms a request