Closed weierophinney closed 2 years ago
Do we want to hold off until psr/container:^2
actually works in laminas/laminas-servicemanager
?
Do we want to hold off until psr/container:^2 actually works in laminas/laminas-servicemanager?
No, because we have both v1 and v2 support in this AND it's opt-in anyways.
Additionally they'll get a conflict if they try and install laminas-servicemanager AND psr/container v2 at the same time anyways. But once laminas-servicemanager supports psr/container v2, this will just work.
@boesing I've updated to conflict with container-interop < 1.2.
Description
This patch does the following:
ContainerInterface
instead of the container-interop equivalent. This can be done because container-interop from v1.2 forward extended the PSR-11 interfaces; as such, this is type widening, which is allowed within PHP.The impetus for this change is the laminas-servicemanager 3.11.0 release, which now makes container-interop into class aliases of PSR-11.