Skip to content

Conversation

jasiolpn
Copy link
Contributor

Fixes #20069

// implementation of Psr\Clock\ClockInterface (e.g. Symfony\Component\Clock\Clock)
// or null. If clock is provided, cache items lifetime will be calculated
// based on time provided by this clock
$clock = null
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would shorten it a bit like this:

// optional implementation of the Psr\Clock\ClockInterface that will be used
// to calculate the lifetime of cache items (for example to get predictable
// lifetimes in tests)
$clock = null,

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this matches better the style of the existing docs, so I changed the original text by this while merging. Thanks.

@javiereguiluz javiereguiluz added this to the 7.2 milestone Aug 6, 2024
@javiereguiluz javiereguiluz merged commit e8f951b into symfony:7.2 Aug 6, 2024
@javiereguiluz
Copy link
Member

Marcin, thanks and congrats on your first Symfony Docs contribution 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Cache] Add optional ClockInterface to ArrayAdapter
4 participants