Skip to content

Commit b1f61a3

Browse files
authored
Merge pull request #315 from glaubinix/cache-psr17
Cache-Plugin: update for usage with PSR-17 StreamFactory in 2.0
2 parents 9423a3c + e2cccfa commit b1f61a3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plugins/cache.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ Usage
1414
The ``CachePlugin`` allows you to cache responses from the server. It can use
1515
any PSR-6 compatible caching engine. By default, the plugin respects the cache
1616
control headers from the server as specified in :rfc:`7234`. It needs a
17-
:ref:`stream <stream-factory>` and a `PSR-6`_ implementation::
17+
`PSR-17`_ StreamFactoryInterface and a `PSR-6`_ implementation::
1818

1919
use Http\Discovery\HttpClientDiscovery;
2020
use Http\Client\Common\PluginClient;
2121
use Http\Client\Common\Plugin\CachePlugin;
2222

2323
/** @var \Psr\Cache\CacheItemPoolInterface $pool */
2424
$pool = ...
25-
/** @var \Http\Message\StreamFactory $streamFactory */
25+
/** @var \Psr\Http\Message\StreamFactoryInterface $streamFactory */
2626
$streamFactory = ...
2727

2828
$options = [];
@@ -180,3 +180,4 @@ It does store responses with cookies or a ``Set-Cookie`` header. Be careful with
180180
the order of your plugins.
181181

182182
.. _PSR-6: http://www.php-fig.org/psr/psr-6/
183+
.. _PSR-17: http://www.php-fig.org/psr/psr-17/

0 commit comments

Comments
 (0)