We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If I have the following code
@singleton @Order(-1) class InitFeatureTogglesUseCase { InitFeatureTogglesUseCase( this._buildConfig, this._hiddenSettingsRepository, this._featureToggleRepository, );
The generated code is the following:
gh.singleton<_i3.InitFeatureTogglesUseCase>(_i3.InitFeatureTogglesUseCase( gh<_i4.BuildConfig>(), gh<_i5.HiddenSettingsRepository>(), gh<_i6.FeatureToggleRepository>(), )
But the instances of BuildConfig, HiddenSettingsRepository and FeatureToggleRepository are not instantiated because they have no order.
BuildConfig
HiddenSettingsRepository
FeatureToggleRepository
Any way of doing this without reordering manually all the instances?
Thanks in advance
The text was updated successfully, but these errors were encountered:
Same problem. Did you find any solution? My code is heavily based on this structure
Sorry, something went wrong.
I've made a workaround using scopes and grouped some specific classes.
scopes
It's not the best approach, but it work for us.
No branches or pull requests
If I have the following code
The generated code is the following:
But the instances of
BuildConfig
,HiddenSettingsRepository
andFeatureToggleRepository
are not instantiated because they have no order.Any way of doing this without reordering manually all the instances?
Thanks in advance
The text was updated successfully, but these errors were encountered: