Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

allow use of psr/cache:^3.0#268

Open
jguittard wants to merge 2 commits intophp-cache:masterphp-cache/cache:masterfrom
jguittard:feat/psr-cache-3jguittard/cache:feat/psr-cache-3Copy head branch name to clipboard
Open

allow use of psr/cache:^3.0#268
jguittard wants to merge 2 commits intophp-cache:masterphp-cache/cache:masterfrom
jguittard:feat/psr-cache-3jguittard/cache:feat/psr-cache-3Copy head branch name to clipboard

Conversation

@jguittard
Copy link

Description

Allow use of psr/cache:^3.0

jguittard added 2 commits May 19, 2022 23:32
Signed-off-by: Julien Guittard <julien.guittard@me.com>
Signed-off-by: Julien Guittard <julien.guittard@me.com>
@alexeevdv
Copy link

What about adapters?

@villfa
Copy link

villfa commented Apr 18, 2023

What about adapters?

#275 solves this issue for most of them (Chain and Common still need to be updated).

@Sweetchuck
Copy link

Sweetchuck commented May 12, 2023

I had some free time, so I played with the psr/*:3.x compatibility.
Here is the result:


Originally cache/cache is a mono repo, which contains multiple projects.

git ls-files '**/composer.json'

src/Adapter/Apc/composer.json
src/Adapter/Apcu/composer.json
src/Adapter/Chain/composer.json
src/Adapter/Common/composer.json
src/Adapter/Doctrine/composer.json
src/Adapter/Filesystem/composer.json
src/Adapter/Illuminate/composer.json
src/Adapter/Memcache/composer.json
src/Adapter/Memcached/composer.json
src/Adapter/MongoDB/composer.json
src/Adapter/PHPArray/composer.json
src/Adapter/Predis/composer.json
src/Adapter/Redis/composer.json
src/Adapter/Void/composer.json
src/Bridge/Doctrine/composer.json
src/Bridge/SimpleCache/composer.json
src/Encryption/composer.json
src/Hierarchy/composer.json
src/Namespaced/composer.json
src/Prefixed/composer.json
src/SessionHandler/composer.json
src/TagInterop/composer.json
src/Taggable/composer.json
src/Util/composer.json

And some how it is sliced into several individual projects.

Maybe it is easier to maintain a mono repo, but difficult to use the derivated individual projects. For example if you need to apply a patch.

I don't think that codes from Sweetchuck-psr-cache/* repositories ever gonna gets merged into the upstream repository, but it might be a good starting point to implement the psr/*:3.x compatibility.

@rreedy
Copy link

rreedy commented Jan 8, 2024

Drupal 10 Requires psr/cache: ^3, and adapters don't seem to get me around that fact while apcu-adapter still requires 1 || 2. Could this move forward so that sites can continue to be updated?

@aurelianzaha
Copy link

do you guys see any chance of moving this PR forward?

having the same issue as @rreedy
trying to install cache/array-adapter on a Drupal 10 but the psr/cache requirements are locked to ^1.0 || ^2.0

@dimitri-koenig dimitri-koenig mentioned this pull request Jul 7, 2025
3 tasks
@xvilo xvilo mentioned this pull request Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.