Sha256: a5cb47da9be4cba382fc33335eff7b55c45e3c81ef2e0a5721ceaa893315bf05

Contents?: true

Size: 388 Bytes

Versions: 5

Compression:

Stored size: 388 Bytes

Contents

require 'dry/web/container'

module Main
  class Container < Dry::Web::Container
    configure do |config|
      config.core_dir = 'component'
      config.root = Pathname(__FILE__).join('../..').realpath.dirname.freeze
      config.auto_register = 'lib'
    end

    require root.join('../../shared/persistence').to_s

    import Persistence::Container

    load_paths!('lib')
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dry-web-roda-0.3.0 spec/dummy/apps/main/component/main/container.rb
dry-web-roda-0.2.3 spec/dummy/apps/main/component/main/container.rb
dry-web-roda-0.2.2 spec/dummy/apps/main/component/main/container.rb
dry-web-roda-0.2.1 spec/dummy/apps/main/component/main/container.rb
dry-web-roda-0.2.0 spec/dummy/apps/main/component/main/container.rb