Added
- Add
Dry::System::ProviderRegistrar#target_container
, to be passed when initializing
providers. By default this is an alias of #container
. This allows for custom provider
registrars to override #target_container
to provide a custom #target
within providers.
An overridden value MUST still wrap the original #target_container
to ensure components
are registered in the right place. (via #270) (@timriley)
Changed
- Make
Dry::System::ProviderRegistrar
public API (via #270) (@timriley)
- When registering a provider source, you can now provide a
provider_options:
hash of default
options for providers to be registered using that source. The one provider option currently
supported is namespace:
. (via #271) (@timriley)
- Load providers when accessing them via
Dry::System::ProviderRegistrar#[]
. The previous,
behavior of #[]
returning nil
if a provider had not been explicitly loaded was a
potential source of confusion. Now #[]
can serve as the one and only interface for fetching
a provider. (via #273) (@timriley)
Compare v1.0.1...v1.1.0.beta1