1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-12 11:30:49 +01:00

25 Commits

Author SHA1 Message Date
Michael Dowling
e29fcc71fd Adding the ability to specify default request options for every client request
Adding Guzzle\Common\Collection::setPath($path, $value)
Marking setDefaultHeaders() and getDefaultHeaders() as deprecated on a
Client.
Added the ability to provide flags when applying RequestFactory options.
This allows for things like applying options in a default manner so that
they do not overwrite existing values.
2013-06-09 01:25:35 -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
Glenn Pratt
c39e0b2c39 Change phing test task to fail on PHPUnit failure. 2012-10-23 13:01:20 -05:00
Clay Loveless
0c5f197254 build.xml cleans pearwork, and GuzzlePearPharPackageTask uses fully qualified channel hostnames. 2012-10-16 11:33:17 -07:00
Clay Loveless
66296d46d0 package task is now in deploy.xml 2012-10-15 16:48:13 -07:00
Clay Loveless
637d5f76bb refactored build including git subsplit management and PEAR package generation 2012-10-15 16:47:14 -07:00
Clay Loveless
9320466841 refactored build including git subsplit management and PEAR package generation 2012-10-15 16:38:39 -07:00
Michael Dowling
a6ffb081e9 Fixing pear package building 2012-09-24 22:06:44 -07:00
Michael Dowling
78c38226be Attempting to get PEAR working once more... 2012-09-23 22:12:23 -07:00
Michael Dowling
3cb5fcdaee Adding a PEAR packaging task 2012-09-23 21:15:06 -07:00
Michael Dowling
95bd5309ad Updating version for UA string. Fixing test that was not mocked correctly. Updating build process. 2012-06-26 18:58:44 -07:00
Michael Dowling
424e3d555e Removing alias from phar file 2012-05-09 16:19:47 -07:00
Michael Dowling
bfb4be4144 Removing references to Symfony2 validator. Changing phar alias from Guzzle to guzzle. 2012-05-09 15:52:04 -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
02f9785f93 [Service] Adding an AliasFactory for aliasing one command name to another. Updating README for new composer setup. Making the build script more generalized. 2012-04-15 12:00:12 -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
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
25fc91d4ef Moving build related code to build/. Updating autoloader for guzzle.phar. 2011-04-14 13:40:13 -05:00
Michael Dowling
9e6c30ddf0 Adding a **/Tests/** exclusion when building phar files so that tests from Guzzle\Service\* clients do not get put into the phar. Only adding .php files to the phar. 2011-04-13 20:38:32 -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
a6f5e6a194 Removing /src from generated Phar file. Removing deprecated assertType calls from PHPUnit tests. 2011-04-13 12:44:53 -05:00
Michael Dowling
0be1876780 Updating build file 2011-04-13 09:01:34 -05:00
Michael Dowling
9914387a06 Adding a phing build target to create a guzzle phar file 2011-04-12 23:49:42 -05:00
Michael Dowling
e56029f7f5 Adding a Phing build file that can be used to initialize git submodules and to copy the phpunit.xml.dist file to phpunit.xml 2011-04-12 23:31:21 -05:00