- Usages of
Phpoaipmh\Http\Guzzle
should now instead usePhpoaipmh\HttpAdapter\GuzzleAdapter
. - Usages of
Phpoaipmh\Http\Curl
should now instead usePhpoaipmh\HttpAdapter\CurlAdapter
. - Any class that implemets the
Phpoaipmh\Http\Client
interface should now instead implementPhpoaipmh\HttpAdapter\HttpAdapterInteraface
. - Change typhints or references for
Phpoaipmh\ResponseList
toPhpoaipmh\RecordIterator
. - If using Guzzle, ensure that you upgrade to Version 5 or later.
- Remove any usage of the
Phpoaipmh\Endpoint::processList()
method. It is no longer necessary, since all methods now return an iterator object by default.- If you absolutely must convert the iterator to an array, use PHP's built-in
iterator_to_array()
function. However, this is not recommended, since it may take a very long time to execute.
- If you absolutely must convert the iterator to an array, use PHP's built-in
- Exception class names have changed:
Phpoaipmh\OaipmhRequestException
is nowPhpoaipmh\Exception\OaipmhException
Phpoaipmh\Client\RequestException
is nowPhpoaipmh\Exception\HttpException
Phpoaipmh\Exception\OaipmhException
is nowPhpoaipmh\Exception\BaseOaipmhException
- Previously, malformed XML would throw a
Phpoaipmh\OaipmhRequestException
. It now throws aPhpoaipmh\Exception\MalformedResponseException
. - All exceptions extend the
Phpoaipmh\Exception\BaseOaipmhException
, so you can use that as a catch-all.
- Added example