8000 Add the versionadded directive · symfony/symfony-docs@4b3fad0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4b3fad0

Browse files
committed
Add the versionadded directive
1 parent e8f951b commit 4b3fad0

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

components/cache/adapters/array_cache_adapter.rst

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,12 @@ method::
2626
// is reached, cache follows the LRU model (least recently used items are deleted)
2727
$maxItems = 0,
2828

29-
// implementation of Psr\Clock\ClockInterface (e.g. Symfony\Component\Clock\Clock)
30-
// or null. If clock is provided, cache items lifetime will be calculated
31-
// based on time provided by this clock
32-
$clock = null
29+
// optional implementation of the Psr\Clock\ClockInterface that will be used
30+
// to calculate the lifetime of cache items (for example to get predictable
31+
// lifetimes in tests)
32+
$clock = null,
3333
);
34+
35+
.. versionadded:: 7.2
36+
37+
The optional ``$clock`` argument was introduced in Symfony 7.2.

0 commit comments

Comments
 (0)
0