private function getPsrRequest(Request $symfonyRequest): ServerRequestInterface
    {
        $psrRequest = $this->diactorosFactory->createRequest($symfonyRequest);
        $psrRequest = $psrRequest->withAttribute('request', $symfonyRequest);

        return $psrRequest;
    }
private function getPsrRequest(Request $symfonyRequest): ServerRequestInterface
    {
        $psrRequest = $this->diactorosFactory->createRequest($symfonyRequest);
        $psrRequest = $psrRequest->withAttribute('request', $symfonyRequest);

        return $psrRequest;
    }
private function getPsrRequest ( Request $ symfonyRequest ) : ServerRequestInterface { $ psrRequest = $ this -> diactorosFactory -> createRequest ( $ symfonyRequest ) ; $ psrRequest = $ psrRequest -> withAttribute ( 'request' , $ symfonyRequest ) ; return $ psrRequest ; }
To transform a symfony request as a psr request and inject the symfony request as attribute if the endpoint need
the symfony request.

@param Request $symfonyRequest
@return ServerRequestInterface
To transform a symfony request as a psr request and inject the symfony request as attribute if the endpoint need the symfony request .