-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Cache] Added reserved characters constant for CacheItem #33516
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
Conversation
On second thought: Those reserved characters are not implementation-specific, right? Maybe we could add them to the contracts' |
On |
@nicolas-grekas Could you confirm you are saying I should change the following:
To this: "symfony/cache-contracts": "^1.1.7|^2", |
The constant has been moved to |
Thank you @andyexeter. |
This PR was merged into the 4.4 branch. Discussion ---------- [Cache] bump required symfony/contracts version | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #33593 | License | MIT | Doc PR | make the changes from #33516 work when `symfony/symfony` is required instead of `symfony/cache` Commits ------- 343d01f bump required symfony/contracts version
This PR introduces a
RESERVED_CHARACTERS
constant to theCacheItem
class to keep things DRY.The rationale for making the constant public is so that developers can access the list of reserved characters so they could - for example - sanitise keys before passing them to the Cache component.