Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a51aad6

Browse filesBrowse files
committed
Improve phpdoc of Cache attribute
1 parent d6c8797 commit a51aad6
Copy full SHA for a51aad6

File tree

1 file changed

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

1 file changed

+16
-2
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/Attribute/Cache.php
+16-2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.