diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c0e4848..19a886da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Change Log +## 1.0.0 - 2016-03-03 + +### Added + +- New configuration for authentication plugin. You may now specify the authentication credentials directly in the bundle's configuration. This will break previous authentication configuration. +- Client factories for Curl, React and Socket. + +### Fixed + +- Bug with circular reference when a client was named 'default' + +### Removed + +- Dependency on `php-http/discovery`. You must now install `puli/symfony-bundle` to use auto discovery. + ## 0.2.0 - 2016-02-23 ## 0.1.0 - 2016-01-11 diff --git a/ClientFactory/PluginClientFactory.php b/ClientFactory/PluginClientFactory.php index f53ff19b..2e0d81ff 100644 --- a/ClientFactory/PluginClientFactory.php +++ b/ClientFactory/PluginClientFactory.php @@ -2,6 +2,7 @@ namespace Http\HttplugBundle\ClientFactory; +use Http\Client\Plugin\Plugin; use Http\Client\Plugin\PluginClient; /** @@ -9,10 +10,10 @@ * * @author Tobias Nyholm */ -class PluginClientFactory +final class PluginClientFactory { /** - * @param array $plugins + * @param Plugin[] $plugins * @param ClientFactory $factory * @param array $config * diff --git a/HttplugFactory.php b/HttplugFactory.php index fe8922da..8d1b36cb 100644 --- a/HttplugFactory.php +++ b/HttplugFactory.php @@ -37,7 +37,6 @@ public function find($type) { $class = $this->findOneByType($type); - // TODO: use doctrine instantiator? return new $class(); } @@ -74,7 +73,7 @@ private function findOneByType($type) } /** - * Evaulates conditions to boolean. + * Evaluates conditions to boolean. * * @param mixed $condition * diff --git a/README.md b/README.md index 5fefad10..769b85a8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# HttplugBundle +# HTTPlug Bundle [![Latest Version](https://img.shields.io/github/release/php-http/HttplugBundle.svg?style=flat-square)](https://github.com/php-http/HttplugBundle/releases) [![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE) @@ -7,7 +7,7 @@ [![Quality Score](https://img.shields.io/scrutinizer/g/php-http/httplug-bundle.svg?style=flat-square)](https://scrutinizer-ci.com/g/php-http/HttplugBundle) [![Total Downloads](https://img.shields.io/packagist/dt/php-http/httplug-bundle.svg?style=flat-square)](https://packagist.org/packages/php-http/HttplugBundle) -**Symfony integration for the [php-http Httplug](http://docs.httplug.io/) HTTP client** +**Symfony integration for [HTTPlug](http://httplug.io/).** ## Install