Zend\Feed\Reader\Reader::importRemoteFeed
Import a feed from a remote URI
Performs similarly to import(), except it uses the HTTP client passed to the method, and does not take into account cached data. Primary purpose is to make it possible to use the Reader with alternate HTTP client implementations.
Signature
public function importRemoteFeed(string
$uri,
ClientInterface
$client )
Parameters
$uri
— string$client
— Zend\Feed\Reader\Http\Client
Returns
- self
Errors/Exceptions
-
RuntimeException
- if response is not an Http\ResponseInterface