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 5768c72

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

File tree

1 file changed

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

1 file changed

+17
-2
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/Attribute/Cache.php
+17-2Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,27 +38,42 @@ 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+
*
48+
* If true, the response is not served stale by a cache in any circumstance
49+
* without first revalidating with the origin.
4750
*/
4851
public bool $mustRevalidate = false,
4952

5053
/**
5154
* Additional "Vary:"-headers.
55+
*
56+
* @var string[]
5257
*/
5358
public array $vary = [],
5459

5560
/**
5661
* An expression to compute the Last-Modified HTTP header.
62+
*
63+
* The expression is evaluated by the ExpressionLanguage component, it
64+
* receives all the request attributes and the resolved controller arguments.
65+
*
66+
* The result of the expression must be a DateTimeInterface.
5767
*/
5868
public ?string $lastModified = null,
5969

6070
/**
6171
* An expression to compute the ETag HTTP header.
72+
*
73+
* The expression is evaluated by the ExpressionLanguage component, it
74+
* receives all the request attributes and the resolved controller arguments.
75+
*
76+
* The result must be a string that will hashed.
6277
*/
6378
public ?string $etag = null,
6479

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.