1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-24 18:13:00 +01:00

31 Commits

Author SHA1 Message Date
Michael Dowling
0a3065ea46 CurlFactory tests 2015-03-26 00:30:14 -07:00
Michael Dowling
acb33e0731 Cleaning up test server and starting on ClientTest 2015-03-21 17:10:17 -07:00
Michael Dowling
1a9ad6b553 WIP refactor for PSR-7 2015-02-25 14:50:44 -08:00
Michael Dowling
2c2f1d7c47 Updating to use RingPHP and s/adapter/handle/g 2014-10-12 18:27:08 -07:00
Michael Dowling
668209c895 Getting tests working again. Removing more fluent interfaces.
Removing more fluent interfaces to make it easier to decorate
classes.
2014-09-08 21:35:11 -07:00
Michael Dowling
f19cc3a40d Some minor breaking changes and adding async future responses. 2014-09-08 21:35:10 -07:00
Michael Dowling
7b257eb0fb Making the test server static and adding Makefile 2014-03-22 22:05:45 -07:00
Michael Dowling
02b910d0f2 Adding tests for Url namespace and starting to sort tests 2013-10-29 21:14:06 -07:00
Michael Dowling
a97fc9a9f8 Removing unused statements from bootstrap.php 2013-05-28 20:00:19 -07:00
Michael Dowling
d22230f1b6 Adding phpunit as dev dep so that it is easier for new users to get up and running 2012-10-31 21:27:06 -07:00
Michael Dowling
05e1fef820 Adding nested ApiParam support in structures. Removing XML builders.
- Adding nested parameter serialization support to json, query, and
  post_field locations.
- Removing XML builders and only using JSON/arrays.
- Removing dot notation for classes, filters, and types.
- Updating validation filters to allow callers to get the default option using a static method.
- Removing annotation support from commands and using a static method instead.
2012-10-15 16:38:32 -07:00
Michael Dowling
698b41e148 Adding Guzzle\\Tests back to composer.json to make it easier to test third part code without needing to modify your bootstrap file 2012-07-23 10:03:23 -07:00
Michael Dowling
171c381c85 Removing Guzzle\\Tests from composer.json and moving it to the test bootstrap file 2012-07-22 15:05:51 -07:00
Jeremy Lindblom
ec0991569f Fixed some typos, mostly in comments. Also fixed the LogPluginTest to make one of the assertContains checks more generic such that it passes on more systems. 2012-06-14 10:23:53 -07:00
Michael Dowling
d8a6bf4849 Updating ZF2 cache and log adapters. Using the ZF2 provided composer repositories. 2012-06-04 12:17:20 -07:00
Michael Dowling
18b6bf284e Updating to latest version of composer 2012-05-15 08:38:38 -07:00
Michael Dowling
f8e8c0302b Refactoring service builders and service factories
[BC] [Service] Moving Guzzle\Service\Builder to
Guzzle\Service\Builder\ServiceBuilder
[Service] Creating an AbstractFactory used to delegate class
instantiation to a concrete factory. Used with service builders and
service descriptions
[Service] Making service descriptions and builders cacheable
[Service] Adding the ability to set global option overrides to service
builder configs. These options are applied to each service owned by a
service builder.  This can be used to globally specify access keys for
example.
[Service] Adding the ability to include other service builder config
files from within XML and JSON files.
[Service] Changing the format of XML and JSON configs.  Old format still
works too.
[Service] Moving XML service description includes to the end of
execution, so that includes are at the beginning of the parsed array.
[Service] Adding a Guzzle\Service\JsonLoader for loading JSON files that
have an { "includes": [] } array
2012-05-13 23:30:13 -07:00
Michael Dowling
c0dc85de35 Breaking / Potentially breaking changes:
1. Adopting a marker interface for Guzzle exceptions.
        A. All exceptions emitted from Guzzle are now wrapped with a Guzzle namespaced exception.
        B. Guzzle\Common\GuzzleExceptionInterface was renamed to Guzzle\Common\GuzzleException
        C. Guzzle\Common\ExceptionCollection was renamed to Guzzle\Common\Exception\ExceptionCollection
    2. Using Header objects for Request and Response objects
        A. When you call $request->getHeader('X'), you will get back a Guzzle\Http\Message\Header object that contains all of the headers that case insensitively match.  This object can be cast to a string or iterated like an array.  You can pass true in the second argument to retrieve the header as a string.
        B. Removing the old Guzzle\Common\Collection based searching arguments from most of the request and response header methods.  All retrievals are case-insensitive and return Header objects.
    3. Changing the two headers added by the cache plugin to just one header with key and ttl.
    4. Changing Guzzle\Http\Message\Response::factory() to fromMessage().
    5. Removing the NullObject return value from ServiceDescriptions and instead simply returning null

New Features / enhancements:

    1. Adding Guzzle\Http\Message\AbstractMessage::addHeaders()
    2. Making it simpler to create service descriptions using a unified factory method that delegates to other factories.
    3. Better handling of ports and hosts in Guzzle\Http\Url

Note: This is a noisy diff because I'm removing trailing whitespace and adding a new line at the end of each source file.
2012-04-22 00:17:49 -07:00
Michael Dowling
f57169a2d6 Updating to the latest version of composer so that Guzzle uses require-dev and --dev configuration options 2012-04-16 15:13:53 -07:00
Michael Dowling
e37668e91e Fixing include path issue with ZF1 2012-04-14 19:04:37 -07:00
Michael Dowling
eabe684b22 [Common] [BC] Renaming ZendLogAdapter to Zf1LogAdater. Adding a Zf2LogAdapter. Renaming ZendCacheAdapter to Zf1CacheAdapter. Adding Zf2CacheAdapter to support Zend Framework 2 caching.
Updating the cache interface to allow passing options to cache methods.
Removing the constructor and removing getCachedObject from CacheAdapterInterface.
Adding a ClosureCacheAdapter.
[Service] Adding the ability to use magic call method behavior for executing commands by name.  Closes #39.
[Tests] Fixing a logging unit test so that it does not spit out to stdout
Separating test dependencies from Guzzle deps by adding a composer-test.json.
Adding unit testing capabilities to the Guzzle phar files.
Updating travis-ci script to use new composer file and adding code coverage to travis runs
[Build] Fixing guzzle-min.phar warning that tried to load index.php
Adding a test-init phing target to help getting setup for testing.
Fixing composer run in travis
2012-04-14 18:49:51 -07:00
Michael Dowling
6cf372f928 Fixing composer.json so that it autoloads from the Guzzle\Tests namespace 2012-01-15 12:31:00 -06:00
Michael Dowling
4c46e77015 Guzzle 2.0
Adopting composer for dependency management
Updating LICENSE, travis build file, making better use of git ignores, and remove unused build target
Removing @author tags.  Use the commit history for a changelog.
Moving files from build folder to /
Adding min build target to product a Guzzle only phar with no autoloader
[Common] Accepting ZF1 or ZF2 cache in ZendCacheAdapter
[Common] Optimizing Stream wrapper and EntityBody abstractions.
[Common] [Http] Migrating from Guzzle event system to the Symfony2 event dispatcher
[Common] Moved Inflector and Inspector to Service namespace
[Http] Simplifying Guzzle\Guzzle curl detection
[Http] Removing Guzzle\Http\Pool and now using Guzzle\Http\Curl\CurlMulti
[Http] The helper methods from Guzzle\Http\Message\RequestFactory have been removed to prevent confusion and encourage developers to use Guzzle\Http\Client to create requests.
[Http] Clients can now send one or more requests in an array using the send() method, so the batch() method was removed.
[Http] Updating curl multi to allow blocking calls while sending other transfers
[Http] Making the Request::hasHeader method more intuitive.  Guzzle\Http\Message\AbstractMessage::hasHeader() now returns true if the header is found using exact matching.  If the header is found using a regex or case-insensitive match, then it will return the name of the found header.
[Http] Removing content-type guessing from EntityBody based on file extension and solely using finfo.
[Http] Adding basic auth plugin
[Http] Cleaning up CookieJar and CurlMulti
[Http] Removing custom rawurlencode from QueryString because PHP 5.3 now properly deals with tilde characters.
[Http] Minor optimization to parsing messages in RequestFactory
[Http] Adding Guzzle\Http\Client for developers that don't need commands or service descriptions
[Http] Making it easier to set a global User-Agent header for a Guzzle\Http\Client
[Http] Fixing the discrepancies between the ClientInterface and Guzzle\Http\Client
[Http] Adding the ability to set and retrieve tokenized headers from Requests and Responses
[Service] Ditching NIH filters and using the Symfony2 validator
[Service] Moving most service building logic to the ServiceBuilder::factory method so that it is easier to build custom config readers.
[Service] Allowing deep nested command inheritance.
[Service] Cleaning up Inflector caching.
[Service] Getting rid of concept of can_batch because everything is now sent in parallel.
[Service] Adding a JSON description builder.
[Service] Cleaning up ResourceIteratorApplyBatched.
[Service] Removing caching stuff from ServiceBuilder because the data being cached is extremely fast to generate.
[Service] Added a method to serialize the ServiceDescription in case a ServiceDescription needs to be cached in an application.
[Service] Making description builders use static methods.
[Service] Adding support to include other description files for XML and JSON description builders.
[Service] Adding support for filters to ApiCommands
[Service] Using {{}} instead of $. to reference other services as a dependency for another service
2012-01-14 13:57:05 -06:00
Michael Dowling
b21cd49b5e Cleaning up template client builder. Adding a service builder to bootstrap files rather than assuming an xml service file. 2011-11-01 22:30:39 -05:00
Michael Dowling
a7ae469671 Removing verbose docblock headers from every class 2011-07-07 17:17:28 -05:00
Michael Dowling
a7762c5d56 Adding an autoloader stub to the generated guzzle.phar so that Guzzle\* classes are autoloaded. Fixing the phing phar build target. 2011-04-13 20:26:15 -05:00
Michael Dowling
782b323893 [Common] Adding a Monolog log adapter. Fixing the ZendLogAdapter and updating logging unit tests. Adding Monolog as a submodule and adding to to the test bootstrap. 2011-04-12 22:57:12 -05:00
Michael Dowling
91f065cab0 Moving phpunit.xml to phpunit.xml.dist. Moving library/ to src/ 2011-04-06 11:11:04 -05:00
Michael Dowling
0bd673fd48 Moving vendors to /vendor and using submodules 2011-04-06 10:58:55 -05:00
Michael Dowling
284e39be4b Using the latest version of the Symfony2 UniversalClassLoader 2011-02-28 22:58:15 -06:00
Michael Dowling
6584ae411e Removing third party services from main repository. Refactoring tests to account for the absence of third party libaries-- using mock objects in their place. Fixing a bug in Inspector that would miss injection delimiters at the beginning of a string. Fixing a bug in ResourceIteratorApplyBatched that caused some resources to skipped when sending batch data to the callback. 2011-02-28 22:30:22 -06:00