Skip to content

Commit

Permalink
Restore find_and_load_provider method as an alias (#277)
Browse files Browse the repository at this point in the history
This was used by earlier 2.x versions of Hanami, so usage is out in the wild. We should maintain this method to ensure nothing breaks.
  • Loading branch information
timriley authored Nov 3, 2024
1 parent b13844a commit b907873
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/dry/system/provider_registrar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ def [](provider_name)
providers[provider_name]
end

# @api public
alias_method :find_and_load_provider, :[]

# @api private
def key?(provider_name)
providers.key?(provider_name)
Expand Down

0 comments on commit b907873

Please sign in to comment.