Closed kirkmadera closed 1 year ago
Yes, I think PHPDI support should be dropped. Could you create PR to remove it? Thank you.
@samsonasik it's a quite stable DIC - do we really want to kill it? :thinking:
Not the PHPDI package itself, but the bridge, as far as I remember, elie29/zend-phpdi-config
have different signature configuring service since 5.0, I removed its support from my module as well: ErrorHeroModule
since 2021 https://github.com/samsonasik/ErrorHeroModule/releases/tag/4.0.0
Ah, totally agree on the bridge.
Yes, we cannot keep it in there, if it's not maintained.
@Ocramius the bridge is maintained, I need more info about the error. For PHP 8+, we need the v8 for the bridge
Hey @elie29, thanks for the feedback: I think you are already discussing this with @samsonasik in #72, sorry for the duplicate noise.
The issue is still open, does anyone work on it?
@someson It would be nice if the support for PHP-DI would remain. So it would be great if you can help here. Thanks in advance! 👍🏻
@froschdesign the bridge needs an update to be compatible with php8.1. I am working on it
I created the issue : https://github.com/elie29/zend-di-config/issues/55
@froschdesign @Ocramius elie29/zend-di-config is compatible with PHP 8.1. All tests passed. you can checkout version 9.0.0
See #82
Is this issue resolved? Fresh installed php 8.1.12 and Composer 2.4.4 still produce error about the elie29/zend-phpdi-config being locked to 6.0.0. I do not know enough about this technology to fix it myself, so i kindly ask for support.
Looks like the configuration for the installer is wrong:
It must be the same as in the Composer configuration:
@marian-lippold-C
I do not know enough about this technology to fix it myself, so i kindly ask for support.
Edit the composer.json
of your new project and change the version constraint for elie29/zend-phpdi-config
and then run the update
or install
command of Composer.
@froschdesign should I create a PR to correct the config of the installer?
@elie29 Go for it. Thanks in advance! 👍🏻
@froschdesign you can find here #99
Handled in #99
Bug Report
I encountered an error on a clean skeleton installation. I am testing with PHP 8.1 and Composer 2.3.7
Summary
I installed Mezzio Skeleton from
composer create-project
and encountered an error thatelie29/zend-phpdi-config
was locked at 6.0 and, thus locked into PHP ^7.1. This is not even a module I requested. I requested to use the laminas-servicemanager strategy.Current behavior
Skeleton not installed. Composer shows an error with an unrequested package. I was able to push through this by manually editing
composer.lock
and removing theelie29/zend-phpdi-config
package entirely.How to reproduce
composer create-project mezzio/mezzio-skeleton mezzio
This is also reproduced with the Minimal installation.
Expected behavior
Skeleton installed.