Skip to content

[Cache] Add information about clock parameter in ArrayAdapter #20070

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 6, 2024
Merged

[Cache] Add information about clock parameter in ArrayAdapter #20070

merged 1 commit into from
Aug 6, 2024

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
2 of 3 checks passed
@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