Comments (8)
@holtkamp
If I have understood the problem correctly, then this works:
Allow use of PHP 8.3,
laminas-cache
andlaminas-i18n
.
But not this:
- To allow use of PHP 8.3 (psr/cache 2.0|3.0)
Because:
4. laminas-i18n requires laminas-servicemanager v3
But this was expected and therefore any help is welcome to solve this.
from laminas-cache.
I am not sure if I understand the issue.
There is https://github.com/laminas/laminas-cache/releases/tag/3.12.0 which supports PHP 8.3, laminas-i18n
is not required by laminas-cache
and thus there should be no limitation.
laminas-i18n
has https://github.com/laminas/laminas-i18n/releases/tag/2.24.0 which supports PHP 8.3, so having laminas-cache 3.12.0+ with laminas-i18n 2.24+ should have full 8.3 support?
Neither cache nor i18n depend on psr/log
so I am a bit lost here.
Can you provide a bit more details of the composer output which leads to the issue as I do not understand the dependency chain by reading the issue description.
Oh and laminas-servicemanager
has https://github.com/laminas/laminas-servicemanager/releases/tag/3.22.0 which supports PHP 8.3 but whyever, your composer does require 3.21.0.
from laminas-cache.
I quickly setup a test project and this is what I get:
composer require php:~8.3.0 laminas/laminas-cache:^3.12 laminas/laminas-i18n:^2.24 psr/log laminas/laminas-cache-storage-adapter-blackhole
./composer.json has been created
Running composer update php laminas/laminas-cache laminas/laminas-i18n psr/log laminas/laminas-cache-storage-adapter-blackhole
Loading composer repositories with package information
Updating dependencies
Lock file operations: 12 installs, 0 updates, 0 removals
- Locking laminas/laminas-cache (3.12.1)
- Locking laminas/laminas-cache-storage-adapter-blackhole (2.4.0)
- Locking laminas/laminas-eventmanager (3.13.0)
- Locking laminas/laminas-i18n (2.26.0)
- Locking laminas/laminas-servicemanager (3.22.1)
- Locking laminas/laminas-stdlib (3.19.0)
- Locking psr/cache (1.0.1)
- Locking psr/clock (1.0.0)
- Locking psr/container (1.1.2)
- Locking psr/log (3.0.0)
- Locking psr/simple-cache (1.0.1)
- Locking webmozart/assert (1.11.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 12 installs, 0 updates, 0 removals
- Downloading webmozart/assert (1.11.0)
- Downloading psr/simple-cache (1.0.1)
- Downloading psr/clock (1.0.0)
- Downloading psr/cache (1.0.1)
- Downloading psr/container (1.1.2)
- Downloading laminas/laminas-servicemanager (3.22.1)
- Downloading laminas/laminas-eventmanager (3.13.0)
- Downloading laminas/laminas-cache-storage-adapter-blackhole (2.4.0)
- Downloading laminas/laminas-cache (3.12.1)
- Downloading laminas/laminas-i18n (2.26.0)
- Downloading psr/log (3.0.0)
- Installing webmozart/assert (1.11.0): Extracting archive
- Installing psr/simple-cache (1.0.1): Extracting archive
- Installing psr/clock (1.0.0): Extracting archive
- Installing psr/cache (1.0.1): Extracting archive
- Installing laminas/laminas-stdlib (3.19.0): Extracting archive
- Installing psr/container (1.1.2): Extracting archive
- Installing laminas/laminas-servicemanager (3.22.1): Extracting archive
- Installing laminas/laminas-eventmanager (3.13.0): Extracting archive
- Installing laminas/laminas-cache-storage-adapter-blackhole (2.4.0): Extracting archive
- Installing laminas/laminas-cache (3.12.1): Extracting archive
- Installing laminas/laminas-i18n (2.26.0): Extracting archive
- Installing psr/log (3.0.0): Extracting archive
15 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating autoload files
6 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
No security vulnerability advisories found.
Using version ^3.0 for psr/log
Using version ^2.4 for laminas/laminas-cache-storage-adapter-blackhole
→ php --version && composer check-platform-reqs
PHP 8.3.6 (cli) (built: Apr 10 2024 14:21:20) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.6, Copyright (c) Zend Technologies
with Zend OPcache v8.3.6, Copyright (c), by Zend Technologies
Checking platform requirements for packages in the vendor dir
ext-ctype 8.3.6 success
ext-intl 8.3.6 success
php 8.3.6 success
So whatever is holding back servicemanager 3.22 should be outlined, you could try checking what is holding back by running:
composer why-not laminas/laminas-servicemanager 3.22
from laminas-cache.
@boesing thanks a lot for the swift and detailed response!
I thought I prepared the issue thoroughly, but apparently I made a mistake: instead of psr/log
I meant psr/cache
. To allow using psr/cache 2.0|3.0
in a project, laminas-cache v4
is required and we started using laminas-cache 4.0.x-dev
which worked properly until recently.
Hopefully this clarifies the issue report...
from laminas-cache.
@froschdesign thanks for the response.
My suggestion was only to tag some kind of "alpha pre-release" with the last commit to laminas-cache 4.0.x-dev which still supports laminas-servicemanager v3 in order to allow people to refer to it while development is done on the other laminas packages to gradually support laminas-servicemanager v4.
I can understand when this suggestion is declined, but it might help others out to already adopt laminas-cache 4.0 in combination with other laminas packages?
from laminas-cache.
I will prepare laminas-cache v4 later this month but there is no cache adapter yet available which will support that version. So that wont help in your specific case. So you wont be able to use psr/cache v2+ at least for a couple of more weeks.
from laminas-cache.
I'll close here as I think this is a duplicate of #292
from laminas-cache.
I will prepare laminas-cache v4 later this month
Thanks, but that tagged version probably requires laminas-servicemanager v4, while my suggestion was to tag a version which still works with laminas-sevicemanager v3
but there is no cache adapter yet available which will support that version.
Not a problem since in some cases no adapter is even required, also see: #192
Anyhow, I understand my situation might be a bit exotic and I found a workaround, thanks for the responses!
from laminas-cache.
Related Issues (20)
- PHP 8.1.1 support HOT 6
- A cache storage implementation is required, while the CaptureCache pattern does not require one HOT 2
- CacheItemPoolDecorator does not properly handle multiple unsaved deferred items HOT 3
- RFC: Configure AdapterPluginManager from the config HOT 9
- Use `Clock`-Interface (PSR-20) in `PSR-6` `CacheItem`
- Dependency Dashboard
- psr/cache V3 and psr/simple-cache V3 compatibilities HOT 1
- laminas-cache is still using Laminas\Cache\StorageFactory::factory() which no longer exists HOT 6
- Provide native support for PSR-20 HOT 1
- [RFC]: Detach serializer plugin from `laminas-serializer` HOT 4
- Add `cache` configuration key documentation HOT 3
- Update `vimeo/psalm` to v5.16 once available HOT 1
- Remove virtual package requirement `laminas/laminas-cache-storage-implementation` HOT 1
- laminas-feed still relevant for this component? HOT 4
- ServiceManager::get results in endless loop since 3.11.0 HOT 10
- Standalone example in `README.md` does not work HOT 1
- Incompatibility of laminas-cache and newer psr/cache versions HOT 2
- Add documentation to `RedisCluster` that we allow `ssl_context` option HOT 1
- Add documentation to `Redis` that we allow `user` option
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laminas-cache.