Skip to content

Commit 025f176

Browse files
fbourigaultNyholm
authored andcommitted
deprecate debug_plugin options (#64)
1 parent fb344d5 commit 025f176

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66

77
- `QueryDefaultsPlugin` to add default query parameters.
88

9+
## Unreleased
10+
11+
### Deprecated
12+
13+
- The `debug_plugins` option for `PluginClient` is deprecated and will be removed in 2.0. Use the decorator design pattern instead like in [ProfilePlugin](https://github.com/php-http/HttplugBundle/blob/de33f9c14252f22093a5ec7d84f17535ab31a384/Collector/ProfilePlugin.php).
14+
915
## 1.4.2 - 2017-03-18
1016

1117
### Deprecated

src/PluginClient.php

+4
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ public function sendAsyncRequest(RequestInterface $request)
108108
*/
109109
private function configure(array $options = [])
110110
{
111+
if (isset($options['debug_plugins'])) {
112+
@trigger_error('The "debug_plugins" option is deprecated since 1.5 and will be removed in 2.0.', E_USER_DEPRECATED);
113+
}
114+
111115
$resolver = new OptionsResolver();
112116
$resolver->setDefaults([
113117
'max_restarts' => 10,

0 commit comments

Comments
 (0)