src/acdhOeaw/fedora/dissemination/Service.php
public function getRequest(FedoraResource $res): Request {
        $uri    = $this->getLocation();

        $param  = $this->getUrlParameters();
        $values = $this->getParameterValues($param, $res);
        foreach ($values as $k => $v) {
            $uri = str_replace($k, $v, $uri);
        }

        return new Request('GET', $uri);
    }
public function getRequest(FedoraResource $res): Request {
        $uri    = $this->getLocation();

        $param  = $this->getUrlParameters();
        $values = $this->getParameterValues($param, $res);
        foreach ($values as $k => $v) {
            $uri = str_replace($k, $v, $uri);
        }

        return new Request('GET', $uri);
    }
public function getRequest ( FedoraResource $ res ) : Request { $ uri = $ this -> getLocation ( ) ; $ param = $ this -> getUrlParameters ( ) ; $ values = $ this -> getParameterValues ( $ param , $ res ) ; foreach ( $ values as $ k => $ v ) { $ uri = str_replace ( $ k , $ v , $ uri ) ; } return new Request ( 'GET' , $ uri ) ; }
Returns PSR-7 HTTP request disseminating a given resource.
@param FedoraResource $res repository resource to be disseminated
@return Request
@throws RuntimeException
Returns PSR - 7 HTTP request disseminating a given resource .