File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -14,15 +14,15 @@ Usage
14
14
The ``CachePlugin `` allows you to cache responses from the server. It can use
15
15
any PSR-6 compatible caching engine. By default, the plugin respects the cache
16
16
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::
18
18
19
19
use Http\Discovery\HttpClientDiscovery;
20
20
use Http\Client\Common\PluginClient;
21
21
use Http\Client\Common\Plugin\CachePlugin;
22
22
23
23
/** @var \Psr\Cache\CacheItemPoolInterface $pool */
24
24
$pool = ...
25
- /** @var \Http\Message\StreamFactory $streamFactory */
25
+ /** @var \Psr\ Http\Message\StreamFactoryInterface $streamFactory */
26
26
$streamFactory = ...
27
27
28
28
$options = [];
@@ -180,3 +180,4 @@ It does store responses with cookies or a ``Set-Cookie`` header. Be careful with
180
180
the order of your plugins.
181
181
182
182
.. _PSR-6 : http://www.php-fig.org/psr/psr-6/
183
+ .. _PSR-17 : http://www.php-fig.org/psr/psr-17/
You can’t perform that action at this time.
0 commit comments