Skip to content
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

Make it easier to avoid circular dependencies in Sf services #18

Open
gggeek opened this issue Mar 30, 2020 · 0 comments
Open

Make it easier to avoid circular dependencies in Sf services #18

gggeek opened this issue Mar 30, 2020 · 0 comments

Comments

@gggeek
Copy link
Contributor

gggeek commented Mar 30, 2020

As soon as you start declaring your Wrapper Repos as Sf services, because they require some other Sf service as dependency, it is quite easy to get into a situation of circular dependency.

This can be fixed by declaring services lazy, but it is both tedious and slows things down a bit at runtime.

Is there a better solution?

What if we f.e. allow to add 'service ids' into the Entity Manager as an alternative to injecting fully-built services?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant