laminas / laminas-eventmanager

Trigger and listen to events within a PHP application
https://docs.laminas.dev/laminas-eventmanager/
BSD 3-Clause "New" or "Revised" License
1.02k stars 13 forks source link

Update to PSR-11 for lazy listener support #25

Closed weierophinney closed 2 years ago

weierophinney commented 2 years ago
Q A
Documentation no
Bugfix no
BC Break no
New Feature yes
RFC no
QA no

Description

This patch does the following:

The impetus for this change is the laminas-servicemanager 3.11.0 release, which now makes container-interop into class aliases of PSR-11.

Ocramius commented 2 years ago

Do we want to hold off until psr/container:^2 actually works in laminas/laminas-servicemanager?

weierophinney commented 2 years ago

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.

weierophinney commented 2 years ago

@boesing I've updated to conflict with container-interop < 1.2.