Skip to content

Commit d7cb2a7

Browse files
committed
State options for $hosts parameter
1 parent 811fc4c commit d7cb2a7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Invalidation/Method/BanInterface.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ interface BanInterface
2121
* match in order to be invalidated (optional).
2222
* This can be part of a content type or regex,
2323
* for instance, "text"
24-
* @param array $hosts Host that cached responses must match in
25-
* order to be invalidated (optional)
24+
* @param array $hosts Hosts that cached responses must match in
25+
* order to be invalidated (optional). This can
26+
* be:
27+
* - a regex, e.g. "^(www\.)?(this|that)\.com$"
28+
* - an array of hosts that will be banned
29+
* - null: to ban the default host.
2630
*
2731
* @return $this
2832
*/

0 commit comments

Comments
 (0)