lib/dry/system/auto_registrar.rb in dry-system-0.10.1 vs lib/dry/system/auto_registrar.rb in dry-system-0.11.0

- old
+ new

@@ -33,10 +33,10 @@ yield(registration_config) if block_given? components(dir).each do |component| next if !component.auto_register? || registration_config.exclude.(component) container.require_component(component) do - register(component.identifier) { registration_config.instance.(component) } + register(component.identifier, memoize: registration_config.memoize) { registration_config.instance.(component) } end end end private