File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 25
25
interface CacheInterface
26
26
{
27
27
/**
28
+ * @param string $key The key of the item to retrieve from the cache
28
29
* @param callable(ItemInterface):mixed $callback Should return the computed value for the given key/item
29
30
* @param float|null $beta A float that, as it grows, controls the likeliness of triggering
30
31
* early expiration. 0 disables it, INF forces immediate expiration.
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ Design Principles
16
16
* they must be backward compatible with existing Symfony components.
17
17
18
18
Packages that implement specific contracts should list them in the "provide"
19
- section of their "composer.json" file, using the ` symfony/*-contracts `
20
- convention (e.g. ` "provide": { "symfony/cache-contracts": "1.0" } ` ).
19
+ section of their "composer.json" file, using the ` symfony/*-contracts-implementation `
20
+ convention (e.g. ` "provide": { "symfony/cache-contracts-implementation ": "1.0" } ` ).
21
21
22
22
FAQ
23
23
---
Original file line number Diff line number Diff line change 24
24
},
25
25
"suggest" : {
26
26
"psr/cache" : " When using the Cache contracts" ,
27
- "psr/container" : " When using the Service contracts"
27
+ "psr/container" : " When using the Service contracts" ,
28
+ "symfony/cache-contracts-implementation" : " " ,
29
+ "symfony/service-contracts-implementation" : " " ,
30
+ "symfony/translation-contracts-implementation" : " "
28
31
},
29
32
"autoload" : {
30
33
"psr-4" : { "Symfony\\ Contracts\\ " : " " },
You can’t perform that action at this time.
0 commit comments