private function createRedirectResponse($fileID, $code)
    {
        $response = new HTTPResponse(null, $code);
        /** @var PublicAdapter $adapter */
        $adapter = $this->getPublicFilesystem()->getAdapter();
        $response->addHeader('Location', $adapter->getPublicUrl($fileID));
        return $response;
    }
private function createRedirectResponse($fileID, $code)
    {
        $response = new HTTPResponse(null, $code);
        /** @var PublicAdapter $adapter */
        $adapter = $this->getPublicFilesystem()->getAdapter();
        $response->addHeader('Location', $adapter->getPublicUrl($fileID));
        return $response;
    }
private function createRedirectResponse ( $ fileID , $ code ) { $ response = new HTTPResponse ( null , $ code ) ; /** @var PublicAdapter $adapter */ $ adapter = $ this -> getPublicFilesystem ( ) -> getAdapter ( ) ; $ response -> addHeader ( 'Location' , $ adapter -> getPublicUrl ( $ fileID ) ) ; return $ response ; }
Redirect browser to specified file ID on the public store. Assumes an existence check for the fileID has
already occured.
@note This was introduced as a patch and will be rewritten/remove in SS4.4.
@param string $fileID
@param int $code
@return HTTPResponse
Redirect browser to specified file ID on the public store . Assumes an existence check for the fileID has already occured .