src/Guzzle/Stream/PhpStreamRequestFactory.php
protected function setUrl(RequestInterface $request)
    {
        $this->url = $request->getUrl(true);

        // Check for basic Auth username
        if ($request->getUsername()) {
            $this->url->setUsername($request->getUsername());
        }

        // Check for basic Auth password
        if ($request->getPassword()) {
            $this->url->setPassword($request->getPassword());
        }
    }
protected function setUrl(RequestInterface $request)
    {
        $this->url = $request->getUrl(true);

        // Check for basic Auth username
        if ($request->getUsername()) {
            $this->url->setUsername($request->getUsername());
        }

        // Check for basic Auth password
        if ($request->getPassword()) {
            $this->url->setPassword($request->getPassword());
        }
    }
protected function setUrl ( RequestInterface $ request ) { $ this -> url = $ request -> getUrl ( true ) ; // Check for basic Auth username if ( $ request -> getUsername ( ) ) { $ this -> url -> setUsername ( $ request -> getUsername ( ) ) ; } // Check for basic Auth password if ( $ request -> getPassword ( ) ) { $ this -> url -> setPassword ( $ request -> getPassword ( ) ) ; } }
Set the URL to use with the factory

@param RequestInterface $request Request that owns the URL
Set the URL to use with the factory