-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to setup DI container, when workflow needs the bus instance #193
Comments
hi @mathiasbn - what you're running into is not uncommon. The One way to ensure that the Hope this helps. |
Hi again. Thank you for responding, and I'm sorry I totally forgot to answer. |
From the example workflow in the guide. A normal thing would be to have a workflow requiring a BusInstance:
In order to setup dependency injection the examples show:
Now I 'would' have i
BusInstance
and can add it to the DI container.The problem is, that
initialize
tries to create all workflows using the DI container.So it will try to construct FulfulmentWorkflow, and to do that, the DI container will try to get the BusInstance, but this is not added yet.
And cannot be added, because we still don't have the bus instance...
So as I can see it, we are in a vicious circle :)
We are updating from 1.0.0. This seems to be added with
Use container to get workflows: #169
Am I completely missing something? (wouldn't be the first time)
The text was updated successfully, but these errors were encountered: