Closed romm closed 9 months ago
Interesting change, thanks for the PR.
Hey there, thanks for the merge!
I've been waiting for a new release and I noticed the previous one is quite old. Would it be ok to publish a new one? No urge btw, I know that OSS can be very time-consuming. 😉
Thanks for your work on the library!
@romm Thank you for your patience. Before tagging a release, I need to test it with other changes to avoid potential issues for projects that rely on this SDK. Your understanding and patience during this time is appreciated.
Understood! Wishing you the best on the upcoming tests then. 🤞
Adding several commands with a single method call can be really useful, especially when working with a framework that can detect all commands instances and inject them in the command bus automatically.
This commit allows commands registration using an iterable, enhancing the possibilities to — for instance — lazy-load the commands only when the SDK API is actually called.
Below is an example of how the
Api
class is declared in a recent Symfony application:The example above would not work without changing the type of the parameter, because the
tagged_iterator
is not an array.