Skip to content

Commit 7b84442

Browse files
author
tuck1s
committed
More README and CHANGELOG
1 parent 3408642 commit 7b84442

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

CHANGELOG.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ This project adheres to [Semantic Versioning](http://semver.org/).
44

55
## [Unreleased][unreleased]
66

7+
## [2.2.1] - 2021-03-08
8+
9+
- [#198](https://github.com/SparkPost/php-sparkpost/pull/198)
10+
- [#191](https://github.com/SparkPost/php-sparkpost/pull/191)
11+
712
## [2.2.0] - 2019-06-04
813
- [#187](https://github.com/SparkPost/php-sparkpost/pull/169) Updated composer.json
914
- [#169](https://github.com/SparkPost/php-sparkpost/pull/169) Optional automatic retry on 5xx
@@ -103,7 +108,8 @@ This major release included a complete refactor of the library to be a thin HTTP
103108
### Fixed
104109
- README now has proper code blocks denoting PHP language
105110

106-
[unreleased]: https://github.com/sparkpost/php-sparkpost/compare/2.2.0...HEAD
111+
[unreleased]: https://github.com/sparkpost/php-sparkpost/compare/2.2.1...HEAD
112+
[2.2.1]: https://github.com/sparkpost/php-sparkpost/compare/2.2.0...2.2.1
107113
[2.2.0]: https://github.com/sparkpost/php-sparkpost/compare/2.1.0...2.2.0
108114
[2.1.0]: https://github.com/sparkpost/php-sparkpost/compare/2.0.3...2.1.0
109115
[2.0.3]: https://github.com/sparkpost/php-sparkpost/compare/2.0.2...2.0.3

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,17 @@ Http\Discovery\Exception\PuliUnavailableException: Puli Factory is not available
5656

5757
[This is usual](http://docs.php-http.org/en/latest/discovery.html#puli-factory-is-not-available). Puli is not required to use the library. You can resume running after the exception.
5858

59+
You can prevent the exception, by setting the discovery strategies, prior to creating the adapter object:
60+
```php
61+
// Prevent annoying "Puli exception" during work with xdebug / IDE
62+
// See https://github.com/getsentry/sentry-php/issues/801
63+
\Http\Discovery\ClassDiscovery::setStrategies([
64+
// \Http\Discovery\Strategy\PuliBetaStrategy::class, // Deliberately disabled
65+
\Http\Discovery\Strategy\CommonClassesStrategy::class,
66+
\Http\Discovery\Strategy\CommonPsr17ClassesStrategy::class,
67+
]);
68+
```
69+
5970
## Setting up a Request Adapter
6071

6172
Because of dependency collision, we have opted to use a request adapter rather than

0 commit comments

Comments
 (0)