Open simPod opened 5 years ago
I thought a lot about supporting this directly but figured most people had a common supertype on the command buses, because hinting on that interface or parent should work. So that would be the first thing I'd try.
That said, alternate idea: if you copy the contents of extension.neon into your phpstan.neon and register the same classes there once per Command bus.
Can you confirm that either of those work? I'd still consider creating an easier config method but want to see what the demand is and what works as is.
Yup, created a new interface Bus that all other buses extend. Works fine I'd say. Thanks.
Okay, I'll add it to the docs then
Related to #1
It's great idea to allow to configure custom bus, was my case as well 👍
However, I have 2 buses. I can't configure both, can I? 🤔