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

dry_system provider sources should be lazy-loadable #252

Open
solnic opened this issue Oct 20, 2022 · 0 comments
Open

dry_system provider sources should be lazy-loadable #252

solnic opened this issue Oct 20, 2022 · 0 comments

Comments

@solnic
Copy link
Member

solnic commented Oct 20, 2022

Currently we have dry/system/provider_sources file which eager-loads all files from lib/dry/system/provider_sources/* as new providers under :dry_system key.

This introduces a problem from the usage point of view because you need to remember to require that file. It would be better to just make it lazy-loadable instead, so that if you try to use a dry_system provider, it just knows how to lazy load it.

For context: dry-rb/dry-rails#55 (comment)

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