@@ -47,16 +47,16 @@ final class CachePlugin implements Plugin
47
47
* @param array $config {
48
48
*
49
49
* @var bool $respect_cache_headers Whether to look at the cache directives or ignore them. This option is
50
- * deprecated, use `respect_response_cache_directives` instead
51
- * @var int $default_ttl (seconds) If we do not respect cache headers or can't calculate a good ttl, use this
52
- * value
53
- * @var string $hash_algo The hashing algorithm to use when generating cache keys
54
- * @var int $cache_lifetime (seconds) To support serving a previous stale response when the server answers 304
55
- * we have to store the cache for a longer time than the server originally says it is valid for.
56
- * We store a cache item for $cache_lifetime + max age of the response.
57
- * @var array $methods list of request methods which can be cached
58
- * @var array $respect_response_cache_directives list of cache directives this plugin will respect while caching responses.
59
- * }.
50
+ * deprecated, use `respect_response_cache_directives` instead
51
+ * @var int $default_ttl (seconds) If we do not respect cache headers or can't calculate a good ttl, use this
52
+ * value
53
+ * @var string $hash_algo The hashing algorithm to use when generating cache keys
54
+ * @var int $cache_lifetime (seconds) To support serving a previous stale response when the server answers 304
55
+ * we have to store the cache for a longer time than the server originally says it is valid for.
56
+ * We store a cache item for $cache_lifetime + max age of the response.
57
+ * @var array $methods list of request methods which can be cached
58
+ * @var array $respect_response_cache_directives list of cache directives this plugin will respect while caching responses.
59
+ * }.
60
60
*/
61
61
public function __construct (CacheItemPoolInterface $ pool , StreamFactory $ streamFactory , array $ config = [])
62
62
{
@@ -65,7 +65,7 @@ public function __construct(CacheItemPoolInterface $pool, StreamFactory $streamF
65
65
66
66
if (isset ($ config ['respect_cache_headers ' ]) && $ config ['respect_response_cache_directives ' ]) {
67
67
throw new \InvalidArgumentException (
68
- 'You can \'t provide config option "respect_cache_headers" and "respect_response_cache_directives". ' .
68
+ 'You can \'t provide config option "respect_cache_headers" and "respect_response_cache_directives". ' .
69
69
'Use "respect_response_cache_directives" instead. '
70
70
);
71
71
}
@@ -81,7 +81,7 @@ public function __construct(CacheItemPoolInterface $pool, StreamFactory $streamF
81
81
*
82
82
* @param CacheItemPoolInterface $pool
83
83
* @param StreamFactory $streamFactory
84
- * @param array $config For all possible config options see the constructor docs
84
+ * @param array $config For all possible config options see the constructor docs
85
85
*
86
86
* @return CachePlugin
87
87
*/
@@ -105,7 +105,7 @@ public static function clientCache(CacheItemPoolInterface $pool, StreamFactory $
105
105
*
106
106
* @param CacheItemPoolInterface $pool
107
107
* @param StreamFactory $streamFactory
108
- * @param array $config For all possible config options see the constructor docs
108
+ * @param array $config For all possible config options see the constructor docs
109
109
*
110
110
* @return CachePlugin
111
111
*/
0 commit comments