Sha256: a58de591bbd170ab39e3028dbf08e4fd22c660995878da7a5789e76bcb3c9d22

Contents?: true

Size: 332 Bytes

Versions: 4

Compression:

Stored size: 332 Bytes

Contents

require 'dry/system/container'

class App < Dry::System::Container
  load_paths!('lib', 'system')

  auto_register!('lib') do |config|
    config.instance do |component|
      # some custom initialization logic
      component.instance
    end

    config.exclude do |component|
      component.path =~ /entities/
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dry-system-0.7.3 examples/custom_configuration_auto_register/system/container.rb
dry-system-0.7.2 examples/custom_configuration_auto_register/system/container.rb
dry-system-0.7.1 examples/custom_configuration_auto_register/system/container.rb
dry-system-0.7.0 examples/custom_configuration_auto_register/system/container.rb