Skip to content

[Cache] allow/provide psr/simple-cache v2 #43101

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
Oct 29, 2021

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

As we already did for psr/cache.
See php-fig/fig-standards#1252 for background.

Copy link
Member

@derrabus derrabus left a comment

Choose a reason for hiding this comment

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

There is no v2 yet. Shall we wait until we can actually test against the new interfaces?

Bildschirmfoto 2021-09-20 um 13 11 45

@stof
Copy link
Member

stof commented Sep 20, 2021

@derrabus the work is in progress to create them.

@stof
Copy link
Member

stof commented Sep 20, 2021

@nicolas-grekas I suggest we avoid merging this PR until they merge the work on the FIG side, for safety.

@interlab
Copy link

interlab commented Oct 3, 2021

Error: Interface 'Psr\SimpleCache\CacheInterface' not found

symfony/cache (v5.3.8)

$cache = new Psr16Cache(new FilesystemAdapter('', 0, CACHE_DIR));

Solution:
composer require psr/simple-cache

@nicolas-grekas
Copy link
Member Author

psr/simple-cache v2&3 now released, PR rebased and ready

@nicolas-grekas nicolas-grekas merged commit 95c0c10 into symfony:4.4 Oct 29, 2021
@nicolas-grekas nicolas-grekas deleted the simple-cachev2 branch October 29, 2021 15:15
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.

5 participants