Crell / Tukio

A complete and robust implementation of the PSR-14 EventDispatcher specification.
Other
105 stars 6 forks source link

Remove Subscriber interface and rely on attributes? #23

Closed Crell closed 7 months ago

Crell commented 1 year ago

For Tukio v2, I am considering removing the Subscriber interface. It's a bit fiddly, and in practice there is extremely little that you cannot do just as well with attributes now. Certainly any static registration is more easily done with attributes. And if you have especially complex logic for registering listeners, it's probably better to do it manually yourself anyway.

If I do remove it, I'll probably add one last release of the 1.x series that marks it deprecated, and possibly a few other things as well along the way.

If I hear nothing, I will consider it safe to remove. Speak now or forever hold your peace. :-)

Crell commented 7 months ago

I've decided to just deprecate the Subscriber interface in v2. It will be removed in v3.