8000 Improve phpdoc of Cache attribute · symfony/symfony@a51aad6 · GitHub
[go: up one dir, main page]

Skip to content

Commit a51aad6

Browse files
committed
Improve phpdoc of Cache attribute
1 parent d6c8797 commit a51aad6

File tree

1 file changed

+16
-2
lines changed
  • src/Symfony/Component/HttpKernel/Attribute

1 file changed

+16
-2
lines changed

src/Symfony/Component/HttpKernel/Attribute/Cache.php

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,27 +38,41 @@ public function __construct(
3838
public int|string|null $smaxage = null,
3939

4040
/**
41-
* Whether the response is public or not.
41+
* If true, the contents will be stored in a public cache and serve to all
42+
* the next requests.
4243
*/
4344
public ?bool $public = null,
4445

4546
/**
46-
* Whether or not the response must be revalidated.
47+
* If true, the response is not served stale by a cache in any circumstance
48+
* without first revalidating with the origin.
4749
*/
4850
public bool $mustRevalidate = false,
4951

5052
/**
5153
* Additional "Vary:"-headers.
54+
*
55+
* @var string[]
5256
*/
5357
public array $vary = [],
5458

5559
/**
5660
* An expression to compute the Last-Modified HTTP header.
61+
*
62+
* The expression is evaluated by the ExpressionLanguage component, it
63+
* receives all the request attributes and the resolved controller arguments.
64+
*
65+
* The result of the expression must be a DateTimeInterface.
5766
*/
5867
public ?string $lastModified = null,
5968

6069
/**
6170
* An expression to compute the ETag HTTP header.
71+
*
72+
* The expression is evaluated by the ExpressionLanguage component, it
73+
* receives all the request attributes and the resolved controller arguments.
74+
*
75+
* The result must be a string that will hashed.
6276
*/
6377
public ?string $etag = null,
6478

0 commit comments

Comments
 (0)
0