Skip to content

dry_system provider sources should be lazy-loadable #252

@solnic

Description

@solnic

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions