Lines Matching refs:Guzzle

1 Guzzle Upgrade Guide
7 Guzzle now uses [PSR-7](http://www.php-fig.org/psr/psr-7/) for HTTP messages.
9 of Guzzle to use a middleware based system rather than an event system. Any
23 - Guzzle no longer uses ReactPHP promises and now uses the
27 chaining and promise resolution will eventually blow the stack. Guzzle
31 2. Guzzle needs to have the ability to synchronously block on a promise to
32 wait for a result. Guzzle promises allows this functionality (and does
49 - Guzzle no longer has a dependency on RingPHP. Due to the use of a middleware
54 complexity in Guzzle, removes a dependency, and improves performance. RingPHP
55 will be maintained for Guzzle 5 support, but will no longer be a part of
56 Guzzle 6.
57 - As Guzzle now uses a middleware based systems the event system and RingPHP
78 - Guzzle now uses `Psr\Http\Message\UriInterface` (implements in
87 migration to strictly adhering to PSR-7 as the interface for Guzzle messages,
88 adding methods to message interfaces would actually require Guzzle messages
93 The change to PSR-7 unfortunately required significant refactoring to Guzzle
94 due to the fact that PSR-7 messages are immutable. Guzzle 5 relied on an event
98 middlewares) or setting a value on an object. Guzzle v6 has chosen the
115 // Guzzle v5 events relied on mutation
162 Guzzle now uses [RingPHP](http://ringphp.readthedocs.org/en/latest) to send
181 Removed "functions.php", so that Guzzle is truly PSR-4 compliant. The following
217 `MessageInterface`. This change makes the Guzzle interfaces compatible with
227 - Guzzle no longer wraps every exception it throws. Only exceptions that are
228 recoverable are now wrapped by Guzzle.
235 Changes per Guzzle 3.x namespace are described below.
239 The `Guzzle\Batch` namespace has been removed. This is best left to
240 third-parties to implement on top of Guzzle's core HTTP library.
244 The `Guzzle\Cache` namespace has been removed. (Todo: No suitable replacement
252 - `Guzzle\Common\Version` has been removed. The VERSION constant can be found
266 Guzzle no longer requires Symfony's EventDispatcher component. Guzzle now uses
274 `GuzzleHttp\Event\Event`, and Guzzle now has an EventInterface in
321 - `Guzzle\Http\Url` has moved to `GuzzleHttp\Url`.
322 - `Guzzle\Http\QueryString` has moved to `GuzzleHttp\Query`.
451 use Guzzle\Stream\PhpStreamRequestFactory;
488 - `Guzzle\Http\EntityBodyInterface` is now `GuzzleHttp\Stream\StreamInterface`
489 - `Guzzle\Http\EntityBody` is now `GuzzleHttp\Stream\Stream`
490 - `Guzzle\Http\CachingEntityBody` is now `GuzzleHttp\Stream\CachingStream`
491 - `Guzzle\Http\ReadLimitEntityBody` is now `GuzzleHttp\Stream\LimitStream`
492 - `Guzzle\Http\IoEmittyinEntityBody` has been removed.
532 The `Guzzle\Inflection` namespace has been removed. This is not a core concern
533 of Guzzle.
537 The `Guzzle\Iterator` namespace has been removed.
539 - `Guzzle\Iterator\AppendIterator`, `Guzzle\Iterator\ChunkedIterator`, and
540 `Guzzle\Iterator\MethodProxyIterator` are nice, but not a core requirement of
541 Guzzle itself.
542 - `Guzzle\Iterator\FilterIterator` is no longer needed because an equivalent
544 - `Guzzle\Iterator\MapIterator` is not really needed when using PHP 5.5 because
552 `Guzzle\Log` namespace has been removed. Guzzle now relies on
558 The `Guzzle\Parser` namespace has been removed. This was previously used to
560 templates, and URLs; however, this level of complexity is not needed in Guzzle
568 Guzzle as a library to add this level of complexity to parsing messages.
570 `GuzzleHttp\UriTemplate`. The Guzzle library will automatically use the PECL
573 it was `Guzzle\Http\Url::factory()`). If custom URL parsing is necessary,
578 The `Guzzle\Plugin` namespace has been renamed to `GuzzleHttp\Subscriber`.
579 Several plugins are shipping with the core Guzzle library under this namespace.
600 The following plugins are not part of the core Guzzle package, but are provided
603 - `Guzzle\Http\Plugin\BackoffPlugin` has been rewritten to be much simpler
606 - `Guzzle\Http\Plugin\Cache\CachePlugin` has moved to
608 - `Guzzle\Http\Plugin\Log\LogPlugin` has moved to
610 - `Guzzle\Http\Plugin\Md5\Md5Plugin` has moved to
612 - `Guzzle\Http\Plugin\Mock\MockPlugin` has moved to
614 - `Guzzle\Http\Plugin\Oauth\OauthPlugin` has moved to
619 The service description layer of Guzzle has moved into two separate packages:
625 Guzzle service descriptions.
632 `Guzzle\Stream\StreamInterface` has been given a large update to cleanly take
633 on the responsibilities of `Guzzle\Http\EntityBody` and
634 `Guzzle\Http\EntityBodyInterface` now that they have been removed. The number
666 was used in Guzzle 3 broke the actual interface of sending streaming requests
678 \Guzzle\Common\Version::$emitWarnings = true;
683 - Marked `Guzzle\Http\Message\Request::isResponseBodyRepeatable()` as deprecated. Use `$request->ge…
684 - Marked `Guzzle\Http\Message\Request::canCache()` as deprecated. Use `Guzzle\Plugin\Cache\DefaultC…
685 - Marked `Guzzle\Http\Message\Request::canCache()` as deprecated. Use `Guzzle\Plugin\Cache\DefaultC…
686 - Marked `Guzzle\Http\Message\Request::setIsRedirect()` as deprecated. Use the HistoryPlugin instea…
687 - Marked `Guzzle\Http\Message\Request::isRedirect()` as deprecated. Use the HistoryPlugin instead.
688 - Marked `Guzzle\Cache\CacheAdapterFactory::factory()` as deprecated
689 - Marked `Guzzle\Service\Client::enableMagicMethods()` as deprecated. Magic methods can no longer b…
690 - Marked `Guzzle\Parser\Url\UrlParser` as deprecated. Just use PHP's `parse_url()` and percent enco…
691 - Marked `Guzzle\Common\Collection::inject()` as deprecated.
692 - Marked `Guzzle\Plugin\CurlAuth\CurlAuthPlugin` as deprecated. Use
701 - Marked `Guzzle\Service\Client::getDefaultHeaders()` as deprecated. Use `$client->getDefaultOption…
702 - Marked `Guzzle\Service\Client::setDefaultHeaders()` as deprecated. Use `$client->setDefaultOption…
703 - Marked 'request.params' for `Guzzle\Http\Client` as deprecated. Use `$client->setDefaultOption('p…
704 …dy' and 'command.on_complete' as deprecated for AbstractCommand. These will work through Guzzle 4.0
724 - Added an `$options` argument to the end of the following methods of `Guzzle\Http\ClientInterface`:
726 - Added an `$options` argument to the end of `Guzzle\Http\Message\Request\RequestFactoryInterface::…
727 - Added an `applyOptions()` method to `Guzzle\Http\Message\Request\RequestFactoryInterface`
728 - Changed `Guzzle\Http\ClientInterface::get($uri = null, $headers = null, $body = null)` to
729 …`Guzzle\Http\ClientInterface::get($uri = null, $headers = null, $options = array())`. You can stil…
731 - Changed `Guzzle\Common\Collection::__construct($data)` to no longer accepts a null value for `$da…
733 - Added `Guzzle\Stream\StreamInterface::isRepeatable`
734 - Made `Guzzle\Http\Client::expandTemplate` and `getUriTemplate` protected methods.
739 - Removed `Guzzle\Http\ClientInterface::setDefaultHeaders(). Use
744 - Removed `Guzzle\Http\ClientInterface::getDefaultHeaders(). Use `$client->getConfig()->getPath('re…
745 - Removed `Guzzle\Http\ClientInterface::expandTemplate()`. This is an implementation detail.
746 - Removed `Guzzle\Http\ClientInterface::setRequestFactory()`. This is an implementation detail.
747 - Removed `Guzzle\Http\ClientInterface::getCurlMulti()`. This is a very specific implementation det…
748 - Removed `Guzzle\Http\Message\RequestInterface::canCache`. Use the CachePlugin.
749 - Removed `Guzzle\Http\Message\RequestInterface::setIsRedirect`. Use the HistoryPlugin.
750 - Removed `Guzzle\Http\Message\RequestInterface::isRedirect`. Use the HistoryPlugin.
781 If you previously relied on Guzzle\Http\Message\Header::raw(), then you will need to update your co…
786 * Removed from interface: Guzzle\Http\ClientInterface::setUriTemplate
787 * Removed from interface: Guzzle\Http\ClientInterface::setCurlMulti()
788 * Removed Guzzle\Http\Message\Request::receivedRequestHeader() and implemented this functionality in
789 Guzzle\Http\Curl\RequestMediator
791 * Removed the optional $tryChunkedTransfer option from Guzzle\Http\Message\EntityEnclosingRequestIn…
792 * Removed the $asObjects argument from Guzzle\Http\Message\MessageInterface::getHeaders()
796 * Removed Guzzle\Parser\ParserRegister::get(). Use getParser()
797 * Removed Guzzle\Parser\ParserRegister::set(). Use registerParser().
802 * Guzzle\Http\Message\Header::hasExactHeader
803 * Guzzle\Http\Message\Header::raw. Use getAll()
804 * Deprecated cache control specific methods on Guzzle\Http\Message\AbstractMessage. Use the CacheCo…
810 … blacklist support. This is no longer necessary now that Expect, Accept, etc. are managed by Guzzle
814 * Most classes that used to require a `Guzzle\Service\Command\CommandInterface` typehint now reques…
815 `Guzzle\Service\Command\ArrayCommandInterface`.
816 * Added `Guzzle\Http\Message\RequestInterface::startResponse()` to the RequestInterface to handle i…
818 * `Guzzle\Service\Command\CommandInterface` now extends from ToArrayInterface and ArrayAccess
830 `Guzzle\Http\Message\Response::getEtag()` no longer strips quotes around the ETag response header
832 ### Removed `Guzzle\Http\Utils`
834 The `Guzzle\Http\Utils` class was removed. This class was only used for testing.
838 `Guzzle\Stream\Stream::getWrapper()` and `Guzzle\Stream\Stream::getStreamType()` are no longer conv…
858 $multi = new Guzzle\Http\Curl\CurlMulti();
859 $builder = Guzzle\Service\Builder\ServiceBuilder::factory('/path/to/config.json');
888 The exception message for `Guzzle\Http\Exception\BadResponseException` no longer contains the full …
894 Multi-valued query parameters are no longer aggregated using a callback function. `Guzzle\Http\Quer…
895 setAggregator() method that accepts a `Guzzle\Http\QueryAggregator\QueryAggregatorInterface` object…
901 ### Guzzle\Service\Inspector
903 Change `\Guzzle\Service\Inspector::fromConfig` to `\Guzzle\Common\Collection::fromConfig`
908 use Guzzle\Service\Inspector;
910 class YourClient extends \Guzzle\Service\Client
934 use Guzzle\Common\Collection;
936 class YourClient extends \Guzzle\Service\Client
1094 ### Guzzle\Service\Description\ServiceDescription
1101 use Guzzle\Service\Description\ServiceDescription;
1113 use Guzzle\Service\Description\ServiceDescription;
1122 ### Guzzle\Common\Inflection\Inflector
1124 Namespace is now `Guzzle\Inflection\Inflector`
1126 ### Guzzle\Http\Plugin
1128 Namespace is now `Guzzle\Plugin`. Many other changes occur within this namespace and are detailed i…
1130 ### Guzzle\Http\Plugin\LogPlugin and Guzzle\Common\Log
1132 Now `Guzzle\Plugin\Log\LogPlugin` and `Guzzle\Log` respectively.
1137 use Guzzle\Common\Log\ClosureLogAdapter;
1138 use Guzzle\Http\Plugin\LogPlugin;
1140 /** @var \Guzzle\Http\Client */
1150 use Guzzle\Log\ClosureLogAdapter;
1151 use Guzzle\Log\MessageFormatter;
1152 use Guzzle\Plugin\Log\LogPlugin;
1154 /** @var \Guzzle\Http\Client */
1161 ### Guzzle\Http\Plugin\CurlAuthPlugin
1163 Now `Guzzle\Plugin\CurlAuth\CurlAuthPlugin`.
1165 ### Guzzle\Http\Plugin\ExponentialBackoffPlugin
1167 Now `Guzzle\Plugin\Backoff\BackoffPlugin`, and other changes.
1172 use Guzzle\Http\Plugin\ExponentialBackoffPlugin;
1184 use Guzzle\Plugin\Backoff\BackoffPlugin;
1185 use Guzzle\Plugin\Backoff\HttpBackoffStrategy;