- Dropped support for PHP < 7.1
- Support for
symfony/http-client
- MockClientStrategy also provides the mock client when requesting an async client
- Support for PSR-17 factories
- Support for PSR-18 clients
Corrected mistakes in 1.5.1. The different between 1.5.2 and 1.5.0 is that
we removed some PHP 7 code.
https://github.com/php-http/discovery/compare/1.5.0...1.5.2
This version added new features by mistake. These are reverted in 1.5.2.
Do not use 1.5.1.
- Support for
nyholm/psr7
version 1.0.
ClassDiscovery::safeClassExists
which will help Magento users.
- Support for HTTPlug 2.0
- Support for Buzz 1.0
- Better error message when nothing found by introducing a new exception:
NoCandidateFoundException
.
- Fixed condition evaluation, it should stop after first invalid condition.
- Discovery support for nyholm/psr7
- Discovery support for CakePHP adapter
- Discovery support for Zend adapter
- Discovery support for Artax adapter
- Fixed minor issue with
MockClientStrategy
, also added more tests.
- MockClientStrategy class.
- Made exception messages clearer.
StrategyUnavailableException
is no longer the previous exception to DiscoveryFailedException
.
CommonClassesStrategy
is using self
instead of static
. Using static
makes no sense when CommonClassesStrategy
is final.
- Discovery support for Slim Framework factories
- Added back
Http\Discovery\NotFoundException
to preserve BC with 0.8 version. You may upgrade from 0.8.x and 0.9.x to 1.0.0 without any BC breaks.
- Added interface
Http\Discovery\Exception
which is implemented by all our exceptions
- Puli strategy renamed to Puli Beta strategy to prevent incompatibility with a future Puli stable
- For BC reasons, the old
Http\Discovery\NotFoundException
(extending the new exception) will be thrown until version 2.0
- Dropping PHP 5.4 support because we use the ::class constant.
- Discovery strategies to find classes
- Puli made optional
- Improved exceptions
- [BC]
NotFoundException
moved to Http\Discovery\Exception\NotFoundException
- Puli composer plugin must be installed separately
- Temporary puli.phar (Beta 10) executable
- Updated HTTPlug dependencies
- Updated Puli dependencies
- Local configuration to make tests passing
- Make Puli CLI a requirement
- More flexible Puli requirement
- Use Puli for discovery
- Improved exception messages
- Updated message factory dependency (php-http/message)
- Array condition evaluation in the Class Discovery
- Message factories (moved to php-http/utils)
- HTTP Async Client Discovery
- Stream factories
- Discoveries and Factories are final
- Message and Uri factories have the type in their names
- Diactoros Message factory uses Stream factory internally
- Improved docblocks for API documentation generation
- Renamed AdapterDiscovery to ClientDiscovery
- Bad HTTP Adapter class name for Guzzle 5