Api/ApiHandler.php
public function handle(Request $request, $data, array $options = []): DataHandlerResult
    {
        try {
            $requestData = $this->parseJsonData($request->getContent());

            return $this->dataHandler->handle($requestData, $data, $options);
        } catch (\OutOfBoundsException $e) {
            throw new BadRequestHttpException('Data hydration failed', $e);
        } catch (InvalidJsonException $e) {
            throw new BadRequestHttpException('JSON parsing failed', $e);
        }
    }
public function handle(Request $request, $data, array $options = []): DataHandlerResult
    {
        try {
            $requestData = $this->parseJsonData($request->getContent());

            return $this->dataHandler->handle($requestData, $data, $options);
        } catch (\OutOfBoundsException $e) {
            throw new BadRequestHttpException('Data hydration failed', $e);
        } catch (InvalidJsonException $e) {
            throw new BadRequestHttpException('JSON parsing failed', $e);
        }
    }
public function handle ( Request $ request , $ data , array $ options = [ ] ) : DataHandlerResult { try { $ requestData = $ this -> parseJsonData ( $ request -> getContent ( ) ) ; return $ this -> dataHandler -> handle ( $ requestData , $ data , $ options ) ; } catch ( \ OutOfBoundsException $ e ) { throw new BadRequestHttpException ( 'Data hydration failed' , $ e ) ; } catch ( InvalidJsonException $ e ) { throw new BadRequestHttpException ( 'JSON parsing failed' , $ e ) ; } }
@param Request $request
@param $data
@param array $options

@return DataHandlerResult
@throws BadRequestHttpException
@param Request $request @param $data @param array $options