Skip to content

Commit 81264f2

Browse files
committed
Deprecate plugins and plugin client
1 parent 9395b4f commit 81264f2

26 files changed

+61
-15
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Change Log
22

3+
4+
## Unreleased
5+
6+
### Deprecated
7+
8+
- Core plugins and plugin client, moved to [client-common](https://github.com/php-http/client-common)
9+
- Logger plugin, moved to [logger-plugin](https://github.com/php-http/logger-plugin)
10+
- Cache plugin, moved to [cache-plugin](https://github.com/php-http/cache-plugin)
11+
- Stopwatch plugin, moved to [stopwatch-plugin](https://github.com/php-http/stopwatch-plugin)
12+
13+
314
## 1.0.1 - 2016-01-29
415

516
### Changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"php": ">=5.4",
1515
"php-http/httplug": "^1.0",
1616
"php-http/message-factory": "^1.0.2",
17-
"php-http/client-common": "^1.0",
17+
"php-http/client-common": "^1.1",
1818
"php-http/message": "^1.0",
1919
"symfony/options-resolver": "^2.6|^3.0"
2020
},

src/AddHostPlugin.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* Add schema and host to a request. Can be set to overwrite the schema and host if desired.
1111
*
1212
* @author Tobias Nyholm <[email protected]>
13+
*
14+
* @deprecated since since version 1.1, and will be removed in 2.0. Use {@link \Http\Client\Common\Plugin\AddHostPlugin} instead.
1315
*/
1416
class AddHostPlugin implements Plugin
1517
{

src/AuthenticationPlugin.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
* Send an authenticated request.
1010
*
1111
* @author Joel Wurtz <[email protected]>
12+
*
13+
* @deprecated since since version 1.1, and will be removed in 2.0. Use {@link \Http\Client\Common\Plugin\AuthenticationPlugin} instead.
1214
*/
1315
class AuthenticationPlugin implements Plugin
1416
{

src/CachePlugin.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* Allow for caching a response.
1414
*
1515
* @author Tobias Nyholm <[email protected]>
16+
*
17+
* @deprecated since since version 1.1, and will be removed in 2.0. Use {@link \Http\Client\Common\Plugin\CachePlugin} instead.
1618
*/
1719
class CachePlugin implements Plugin
1820
{

src/ContentLengthPlugin.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
* Allow to set the correct content length header on the request or to transfer it as a chunk if not possible.
1010
*
1111
* @author Joel Wurtz <[email protected]>
12+
*
13+
* @deprecated since since version 1.1, and will be removed in 2.0. Use {@link \Http\Client\Common\Plugin\ContentLengthPlugin} instead.
1214
*/
1315
class ContentLengthPlugin implements Plugin
1416
{

src/CookiePlugin.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
* Handle request cookies.
1313
*
1414
* @author Joel Wurtz <[email protected]>
15+
*
16+
* @deprecated since since version 1.1, and will be removed in 2.0. Use {@link \Http\Client\Common\Plugin\CookiePlugin} instead.
1517
*/
1618
class CookiePlugin implements Plugin
1719
{

src/DecoderPlugin.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* If Content-Encoding is not disabled, the plugin will add an Accept-Encoding header for the encoding methods it supports.
2020
*
2121
* @author Joel Wurtz <[email protected]>
22+
*
23+
* @deprecated since since version 1.1, and will be removed in 2.0. Use {@link \Http\Client\Common\Plugin\DecoderPlugin} instead.
2224
*/
2325
class DecoderPlugin implements Plugin
2426
{

src/ErrorPlugin.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* By default an exception will be thrown for all status codes from 400 to 599.
1414
*
1515
* @author Joel Wurtz <[email protected]>
16+
*
17+
* @deprecated since since version 1.1, and will be removed in 2.0. Use {@link \Http\Client\Common\Plugin\ErrorPlugin} instead.
1618
*/
1719
class ErrorPlugin implements Plugin
1820
{

src/Exception/CircularRedirectionException.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
* Thrown when circular redirection is detected.
99
*
1010
* @author Joel Wurtz <[email protected]>
11+
*
12+
* @deprecated since since version 1.1, and will be removed in 2.0. Use {@link \Http\Client\Common\Exception\CircularRedirectionException} instead.
1113
*/
1214
class CircularRedirectionException extends HttpException
1315
{

0 commit comments

Comments
 (0)