public function httpGet(RequestInterface $request, ResponseInterface $hR, $tempLocation)
    {
        if (!file_exists($tempLocation)) {
            return;
        }

        $hR->setHeader('Content-Type', 'application/octet-stream');
        $hR->setHeader('Content-Length', filesize($tempLocation));
        $hR->setHeader('X-Sabre-Temp', 'true');
        $hR->setStatus(200);
        $hR->setBody(fopen($tempLocation, 'r'));

        return false;
    }
public function httpGet(RequestInterface $request, ResponseInterface $hR, $tempLocation)
    {
        if (!file_exists($tempLocation)) {
            return;
        }

        $hR->setHeader('Content-Type', 'application/octet-stream');
        $hR->setHeader('Content-Length', filesize($tempLocation));
        $hR->setHeader('X-Sabre-Temp', 'true');
        $hR->setStatus(200);
        $hR->setBody(fopen($tempLocation, 'r'));

        return false;
    }
public function httpGet ( RequestInterface $ request , ResponseInterface $ hR , $ tempLocation ) { if ( ! file_exists ( $ tempLocation ) ) { return ; } $ hR -> setHeader ( 'Content-Type' , 'application/octet-stream' ) ; $ hR -> setHeader ( 'Content-Length' , filesize ( $ tempLocation ) ) ; $ hR -> setHeader ( 'X-Sabre-Temp' , 'true' ) ; $ hR -> setStatus ( 200 ) ; $ hR -> setBody ( fopen ( $ tempLocation , 'r' ) ) ; return false ; }
This method handles the GET method for temporary files.
If the file doesn't exist, it will return false which will kick in
the regular system for the GET method.

@param RequestInterface  $request
@param ResponseInterface $hR
@param string            $tempLocation

@return bool
This method handles the GET method for temporary files . If the file doesn t exist it will return false which will kick in the regular system for the GET method .