Entity/EntityService.php
private function getValuesFromRequest(Request $request)
    {
        $values = array_merge($request->query->all(), $request->request->all());
        $contentValues = json_decode($request->getContent(), true);
        if (is_array($contentValues)) {
            $values = array_merge($values, $contentValues);
        }

        return $values;
    }
private function getValuesFromRequest(Request $request)
    {
        $values = array_merge($request->query->all(), $request->request->all());
        $contentValues = json_decode($request->getContent(), true);
        if (is_array($contentValues)) {
            $values = array_merge($values, $contentValues);
        }

        return $values;
    }
private function getValuesFromRequest ( Request $ request ) { $ values = array_merge ( $ request -> query -> all ( ) , $ request -> request -> all ( ) ) ; $ contentValues = json_decode ( $ request -> getContent ( ) , true ) ; if ( is_array ( $ contentValues ) ) { $ values = array_merge ( $ values , $ contentValues ) ; } return $ values ; }
Returns the values of the options from the request.

@param \Symfony\Component\HttpFoundation\Request $request
@return array
Returns the values of the options from the request .