From 5cfe66186f84209bc205de91ef6f9c7f5b033973 Mon Sep 17 00:00:00 2001 From: Tim Riley Date: Sun, 12 May 2024 21:56:29 +1000 Subject: [PATCH] Mark ProviderRegistrar, target_container as public --- lib/dry/system/provider_registrar.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/dry/system/provider_registrar.rb b/lib/dry/system/provider_registrar.rb index ee818f69..4ab6d178 100644 --- a/lib/dry/system/provider_registrar.rb +++ b/lib/dry/system/provider_registrar.rb @@ -13,7 +13,8 @@ module System # provider registrar is responsible for loading provider files and exposing an API for # running the provider lifecycle steps. # - # @api private + # @api public + # @since 1.1.0 class ProviderRegistrar # @api private attr_reader :providers @@ -21,7 +22,12 @@ class ProviderRegistrar # @api private attr_reader :container + # Returns the container exposed to providers as `target_container`. + # + # @return [Dry::System::Container] + # # @api public + # @since 1.1.0 alias_method :target_container, :container # @api private