-
-
Notifications
You must be signed in to change notification settings - Fork 188
[SymfonyEventDispatcher] deprecation in favor of contributte #168
Comments
👍 I like this whole thing. Don't split energy to more projects, rather focus on one. If it could be I'm not sure what do you mean with |
@TomasVotruba I get it now. It might be useful. I could add it to contributte/event-dispatcher too. |
FYI I intent to drop the dispatcher integration from Kdyby/Events too, and probably gonna add suggest for |
@fprochazka That sounds great. Where does this intent came from? :) Do you mean to drop Kdyby/Evens or just symfony events or only nette packages events? |
@fprochazka I get it now. :) Thanks. |
@fprochazka Another point for this. Thank you. @lexinek What do you think? I'd like to hear your opinion. |
If the answer is YES, i am happy and i will approve this instantly for you.
Overall i think this is good way to go, focus on more important things that will bring more added value to community and developers, instead of bringing the wood into forest (maintaining package solving problem that is already solved by other maintained package) |
Thank you so much for your complete and easy to read answer.
Bringing wood to the forrest exactly describes my feeling. Nice one. |
Resolved via #170 Thank you all for your words, ideas and opinions. It's much easier for me to decide upon many united voices. |
It's all yours now @f3l1x Enjoy ❤️ |
@f3l1x Bit late, but I've just noticed my app stopped working after switching to your bundle. To me while to figure out only contributte interface are automitically added, not This is a huge BC break, that would force all people using Symplify extension to change all their subscribers. Would you be open to use original interface? |
Sure, I will change it. :) |
@f3l1x That would be great 🍰 I'm sorry if my tone was too hursh, I had weird and tough night yesterday. |
I definitely agree. Btw i had similar bug in my application once and spent 2 hours finding out that in my |
Hehe, that must have hurt. Which one? :D We might start some PHP Trollo package! |
In my case it was Imho best practice is to support only symfony event dispatcher interface, as it leads to terrible use cases such as i described, but it would cause BC Break to this (contributte) package. |
@lexinek Yeah I hate PHPStorm for suggesting the JMS Dispatcher. Is there some way to prevent PHPStorm from doing so? |
@enumag i did not find any way to do it yet :-/ |
@TomasVotruba No, we need the bundle where it is. |
@enumag So - not the preties solution, but could work - maybe https://pehapkari.cz/blog/2017/01/20/jak-snadno-a-rychle-upravovat-soubory-ve-vendoru/ |
@TomasVotruba The bundle uses the interace internally so the change would be too heavy. This is not a good way to fix an IDE issue. |
@enumag Too bad. One of few first things I learnt in Symfony world, was that JMS Bundles are better to skip and manage by own code. |
Possibly. I didn't personally add it to the codebase so I'll investigate why it's there. It's probably for FOSRestBundle though and I don't know any other good bundle for rest API. Can you recommend any? |
I think few guys might know good REST bundles or approach in Symfony /cc @fprochazka @VasekPurchart @mhujer |
We've been using |
Yes, our setup relied on JMS, which I agree is quite a pain to use sometimes, but I think this was caused mainly by the fact that the author was not actively developing them. We were using them because of their broad capabilities and quite good extension options and we had some custom made infrastructure set up on it :) But anyway I didn't find any better combination of bundles to serve my purposes, so I wanted to implement my own, but of course, there was no time, so we were stuck with this. If my next project is a Symfony API though, I'll try to create it :) |
Hey Guys,
I've got a question for you. Since Symfony 3.3, there have been added new EventDispatcher features, that
dropped added value of SymplifyEventDispatcher for Symfony.
Only usable case remains Nette. There is similar package by @f3l1x :
https://github.com/contributte/event-dispatcher
That does pretty much the same thing. Last few months I've realized I can invest to package that add more than just a few % of added value, instead of maintaining a 90% similar product.
1. So I would be happy to deprecate this package in favor of @f3l1x one. That means, it would be still available for years and current composer supported versions, just not developed.**
My question is - would you consider that a good way to continue or not? And why?
2. I asked @enumag on PM, and he would be ok, just missing
::class
based event naming instead of string one.instead of
For me, that would a detail, since on my own events I can use
::class
regardless the package.What do you think? About 1. and 2.
/cc @f3l1x @enumag @lexinek @fprochazka
The text was updated successfully, but these errors were encountered: