You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and [`psr/http-message-implementation`](https://packagist.org/providers/psr/http-message-implementation).
112
112
113
113
This bundle depends on `sentry/sdk`, which is a metapackage that already solves this need, requiring our suggested HTTP
114
-
packages: the Curl client and Guzzle's message factories.
114
+
packages: the Symfony HTTP client (`symfony/http-client`) and Guzzle's message factories (`http-interop/http-factory-guzzle`).
115
+
116
+
If you want to use a different HTTP client or message factory, you can override the `sentry/sdk` package by adding the following to your `composer.json` after the `require` section:
115
117
116
-
Instead, if you want to use a different HTTP client or message factory, you can override the ``sentry/sdk`` package by adding the following to your ``composer.json`` after the ``require`` section:
117
118
```json
118
119
"replace": {
119
120
"sentry/sdk": "*"
120
121
}
121
122
```
122
123
123
-
For example for using Guzzle's components:
124
+
For example when you want to use Guzzle's components:
A possible alternate solution is using `pugx/sentry-sdk`, a metapackage that replaces `sentry/sdk` and uses `symfony/http-client` instead of `guzzlehttp/guzzle`:
130
-
131
-
```bash
132
-
composer require pugx/sentry-sdk
133
-
```
130
+
If you don't have a compatible HTTP client and/or message factory implementation installed `php-http/discovery` will try to install it for you using a Composer plugin.
134
131
135
132
## Maintained versions
136
133
137
134
* 4.x is actively maintained and developed on the master branch, and uses Sentry SDK 3.0;
138
135
* 3.x is supported only for fixes and uses Sentry SDK 2.0;
139
136
* 2.x is no longer maintained; from this version onwards it requires Symfony 3+ and PHP 7.1+;
140
-
* 1.x is no longer maintained; you can use it for Symfony < 2.8 and PHP 5.6/7.0;
137
+
* 1.x is no longer maintained; you can use it for Symfony < 2.8 and PHP 5.6/7.0;
0 commit comments