Lines Matching refs:Guzzle
1 Guzzle Upgrade Guide
7 In order to take advantage of the new features of PHP, Guzzle dropped the support
13 - If you extend a class of Guzzle; update all signatures on methods you override.
40 All internal native functions calls of Guzzle are now prefixed with a slash. This
57 Guzzle now uses [PSR-7](https://www.php-fig.org/psr/psr-7/) for HTTP messages.
59 of Guzzle to use a middleware based system rather than an event system. Any
73 - Guzzle no longer uses ReactPHP promises and now uses the
77 chaining and promise resolution will eventually blow the stack. Guzzle
81 2. Guzzle needs to have the ability to synchronously block on a promise to
82 wait for a result. Guzzle promises allows this functionality (and does
99 - Guzzle no longer has a dependency on RingPHP. Due to the use of a middleware
104 complexity in Guzzle, removes a dependency, and improves performance. RingPHP
105 will be maintained for Guzzle 5 support, but will no longer be a part of
106 Guzzle 6.
107 - As Guzzle now uses a middleware based systems the event system and RingPHP
128 - Guzzle now uses `Psr\Http\Message\UriInterface` (implements in
137 migration to strictly adhering to PSR-7 as the interface for Guzzle messages,
138 adding methods to message interfaces would actually require Guzzle messages
143 The change to PSR-7 unfortunately required significant refactoring to Guzzle
144 due to the fact that PSR-7 messages are immutable. Guzzle 5 relied on an event
148 middlewares) or setting a value on an object. Guzzle v6 has chosen the
165 // Guzzle v5 events relied on mutation
212 Guzzle now uses [RingPHP](https://ringphp.readthedocs.org/en/latest) to send
231 Removed "functions.php", so that Guzzle is truly PSR-4 compliant. The following
267 `MessageInterface`. This change makes the Guzzle interfaces compatible with
277 - Guzzle no longer wraps every exception it throws. Only exceptions that are
278 recoverable are now wrapped by Guzzle.
285 Changes per Guzzle 3.x namespace are described below.
289 The `Guzzle\Batch` namespace has been removed. This is best left to
290 third-parties to implement on top of Guzzle's core HTTP library.
294 The `Guzzle\Cache` namespace has been removed. (Todo: No suitable replacement
302 - `Guzzle\Common\Version` has been removed. The VERSION constant can be found
316 Guzzle no longer requires Symfony's EventDispatcher component. Guzzle now uses
324 `GuzzleHttp\Event\Event`, and Guzzle now has an EventInterface in
371 - `Guzzle\Http\Url` has moved to `GuzzleHttp\Url`.
372 - `Guzzle\Http\QueryString` has moved to `GuzzleHttp\Query`.
501 use Guzzle\Stream\PhpStreamRequestFactory;
538 - `Guzzle\Http\EntityBodyInterface` is now `GuzzleHttp\Stream\StreamInterface`
539 - `Guzzle\Http\EntityBody` is now `GuzzleHttp\Stream\Stream`
540 - `Guzzle\Http\CachingEntityBody` is now `GuzzleHttp\Stream\CachingStream`
541 - `Guzzle\Http\ReadLimitEntityBody` is now `GuzzleHttp\Stream\LimitStream`
542 - `Guzzle\Http\IoEmittyinEntityBody` has been removed.
582 The `Guzzle\Inflection` namespace has been removed. This is not a core concern
583 of Guzzle.
587 The `Guzzle\Iterator` namespace has been removed.
589 - `Guzzle\Iterator\AppendIterator`, `Guzzle\Iterator\ChunkedIterator`, and
590 `Guzzle\Iterator\MethodProxyIterator` are nice, but not a core requirement of
591 Guzzle itself.
592 - `Guzzle\Iterator\FilterIterator` is no longer needed because an equivalent
594 - `Guzzle\Iterator\MapIterator` is not really needed when using PHP 5.5 because
602 `Guzzle\Log` namespace has been removed. Guzzle now relies on
608 The `Guzzle\Parser` namespace has been removed. This was previously used to
610 templates, and URLs; however, this level of complexity is not needed in Guzzle
618 Guzzle as a library to add this level of complexity to parsing messages.
620 `GuzzleHttp\UriTemplate`. The Guzzle library will automatically use the PECL
623 it was `Guzzle\Http\Url::factory()`). If custom URL parsing is necessary,
628 The `Guzzle\Plugin` namespace has been renamed to `GuzzleHttp\Subscriber`.
629 Several plugins are shipping with the core Guzzle library under this namespace.
650 The following plugins are not part of the core Guzzle package, but are provided
653 - `Guzzle\Http\Plugin\BackoffPlugin` has been rewritten to be much simpler
656 - `Guzzle\Http\Plugin\Cache\CachePlugin` has moved to
658 - `Guzzle\Http\Plugin\Log\LogPlugin` has moved to
660 - `Guzzle\Http\Plugin\Md5\Md5Plugin` has moved to
662 - `Guzzle\Http\Plugin\Mock\MockPlugin` has moved to
664 - `Guzzle\Http\Plugin\Oauth\OauthPlugin` has moved to
669 The service description layer of Guzzle has moved into two separate packages:
675 Guzzle service descriptions.
682 `Guzzle\Stream\StreamInterface` has been given a large update to cleanly take
683 on the responsibilities of `Guzzle\Http\EntityBody` and
684 `Guzzle\Http\EntityBodyInterface` now that they have been removed. The number
716 was used in Guzzle 3 broke the actual interface of sending streaming requests
728 \Guzzle\Common\Version::$emitWarnings = true;
733 - Marked `Guzzle\Http\Message\Request::isResponseBodyRepeatable()` as deprecated. Use `$request->ge…
734 - Marked `Guzzle\Http\Message\Request::canCache()` as deprecated. Use `Guzzle\Plugin\Cache\DefaultC…
735 - Marked `Guzzle\Http\Message\Request::canCache()` as deprecated. Use `Guzzle\Plugin\Cache\DefaultC…
736 - Marked `Guzzle\Http\Message\Request::setIsRedirect()` as deprecated. Use the HistoryPlugin instea…
737 - Marked `Guzzle\Http\Message\Request::isRedirect()` as deprecated. Use the HistoryPlugin instead.
738 - Marked `Guzzle\Cache\CacheAdapterFactory::factory()` as deprecated
739 - Marked `Guzzle\Service\Client::enableMagicMethods()` as deprecated. Magic methods can no longer b…
740 - Marked `Guzzle\Parser\Url\UrlParser` as deprecated. Just use PHP's `parse_url()` and percent enco…
741 - Marked `Guzzle\Common\Collection::inject()` as deprecated.
742 - Marked `Guzzle\Plugin\CurlAuth\CurlAuthPlugin` as deprecated. Use
751 - Marked `Guzzle\Service\Client::getDefaultHeaders()` as deprecated. Use `$client->getDefaultOption…
752 - Marked `Guzzle\Service\Client::setDefaultHeaders()` as deprecated. Use `$client->setDefaultOption…
753 - Marked 'request.params' for `Guzzle\Http\Client` as deprecated. Use `$client->setDefaultOption('p…
754 …dy' and 'command.on_complete' as deprecated for AbstractCommand. These will work through Guzzle 4.0
774 - Added an `$options` argument to the end of the following methods of `Guzzle\Http\ClientInterface`:
776 - Added an `$options` argument to the end of `Guzzle\Http\Message\Request\RequestFactoryInterface::…
777 - Added an `applyOptions()` method to `Guzzle\Http\Message\Request\RequestFactoryInterface`
778 - Changed `Guzzle\Http\ClientInterface::get($uri = null, $headers = null, $body = null)` to
779 …`Guzzle\Http\ClientInterface::get($uri = null, $headers = null, $options = array())`. You can stil…
781 - Changed `Guzzle\Common\Collection::__construct($data)` to no longer accepts a null value for `$da…
783 - Added `Guzzle\Stream\StreamInterface::isRepeatable`
784 - Made `Guzzle\Http\Client::expandTemplate` and `getUriTemplate` protected methods.
789 - Removed `Guzzle\Http\ClientInterface::setDefaultHeaders(). Use
794 - Removed `Guzzle\Http\ClientInterface::getDefaultHeaders(). Use `$client->getConfig()->getPath('re…
795 - Removed `Guzzle\Http\ClientInterface::expandTemplate()`. This is an implementation detail.
796 - Removed `Guzzle\Http\ClientInterface::setRequestFactory()`. This is an implementation detail.
797 - Removed `Guzzle\Http\ClientInterface::getCurlMulti()`. This is a very specific implementation det…
798 - Removed `Guzzle\Http\Message\RequestInterface::canCache`. Use the CachePlugin.
799 - Removed `Guzzle\Http\Message\RequestInterface::setIsRedirect`. Use the HistoryPlugin.
800 - Removed `Guzzle\Http\Message\RequestInterface::isRedirect`. Use the HistoryPlugin.
831 If you previously relied on Guzzle\Http\Message\Header::raw(), then you will need to update your co…
836 * Removed from interface: Guzzle\Http\ClientInterface::setUriTemplate
837 * Removed from interface: Guzzle\Http\ClientInterface::setCurlMulti()
838 * Removed Guzzle\Http\Message\Request::receivedRequestHeader() and implemented this functionality in
839 Guzzle\Http\Curl\RequestMediator
841 * Removed the optional $tryChunkedTransfer option from Guzzle\Http\Message\EntityEnclosingRequestIn…
842 * Removed the $asObjects argument from Guzzle\Http\Message\MessageInterface::getHeaders()
846 * Removed Guzzle\Parser\ParserRegister::get(). Use getParser()
847 * Removed Guzzle\Parser\ParserRegister::set(). Use registerParser().
852 * Guzzle\Http\Message\Header::hasExactHeader
853 * Guzzle\Http\Message\Header::raw. Use getAll()
854 * Deprecated cache control specific methods on Guzzle\Http\Message\AbstractMessage. Use the CacheCo…
860 … blacklist support. This is no longer necessary now that Expect, Accept, etc. are managed by Guzzle
864 * Most classes that used to require a `Guzzle\Service\Command\CommandInterface` typehint now reques…
865 `Guzzle\Service\Command\ArrayCommandInterface`.
866 * Added `Guzzle\Http\Message\RequestInterface::startResponse()` to the RequestInterface to handle i…
868 * `Guzzle\Service\Command\CommandInterface` now extends from ToArrayInterface and ArrayAccess
880 `Guzzle\Http\Message\Response::getEtag()` no longer strips quotes around the ETag response header
882 ### Removed `Guzzle\Http\Utils`
884 The `Guzzle\Http\Utils` class was removed. This class was only used for testing.
888 `Guzzle\Stream\Stream::getWrapper()` and `Guzzle\Stream\Stream::getStreamType()` are no longer conv…
908 $multi = new Guzzle\Http\Curl\CurlMulti();
909 $builder = Guzzle\Service\Builder\ServiceBuilder::factory('/path/to/config.json');
938 The exception message for `Guzzle\Http\Exception\BadResponseException` no longer contains the full …
944 Multi-valued query parameters are no longer aggregated using a callback function. `Guzzle\Http\Quer…
945 setAggregator() method that accepts a `Guzzle\Http\QueryAggregator\QueryAggregatorInterface` object…
951 ### Guzzle\Service\Inspector
953 Change `\Guzzle\Service\Inspector::fromConfig` to `\Guzzle\Common\Collection::fromConfig`
958 use Guzzle\Service\Inspector;
960 class YourClient extends \Guzzle\Service\Client
984 use Guzzle\Common\Collection;
986 class YourClient extends \Guzzle\Service\Client
1144 ### Guzzle\Service\Description\ServiceDescription
1151 use Guzzle\Service\Description\ServiceDescription;
1163 use Guzzle\Service\Description\ServiceDescription;
1172 ### Guzzle\Common\Inflection\Inflector
1174 Namespace is now `Guzzle\Inflection\Inflector`
1176 ### Guzzle\Http\Plugin
1178 Namespace is now `Guzzle\Plugin`. Many other changes occur within this namespace and are detailed i…
1180 ### Guzzle\Http\Plugin\LogPlugin and Guzzle\Common\Log
1182 Now `Guzzle\Plugin\Log\LogPlugin` and `Guzzle\Log` respectively.
1187 use Guzzle\Common\Log\ClosureLogAdapter;
1188 use Guzzle\Http\Plugin\LogPlugin;
1190 /** @var \Guzzle\Http\Client */
1200 use Guzzle\Log\ClosureLogAdapter;
1201 use Guzzle\Log\MessageFormatter;
1202 use Guzzle\Plugin\Log\LogPlugin;
1204 /** @var \Guzzle\Http\Client */
1211 ### Guzzle\Http\Plugin\CurlAuthPlugin
1213 Now `Guzzle\Plugin\CurlAuth\CurlAuthPlugin`.
1215 ### Guzzle\Http\Plugin\ExponentialBackoffPlugin
1217 Now `Guzzle\Plugin\Backoff\BackoffPlugin`, and other changes.
1222 use Guzzle\Http\Plugin\ExponentialBackoffPlugin;
1234 use Guzzle\Plugin\Backoff\BackoffPlugin;
1235 use Guzzle\Plugin\Backoff\HttpBackoffStrategy;