# dry-system

**URL:** https://discourse.dry-rb.org/c/support/dry-system/13.md

[Latest](https://discourse.dry-rb.org/latest.md) · [Categories](https://discourse.dry-rb.org/categories.md)

---

## [About the dry-system category](https://discourse.dry-rb.org/t/about-the-dry-system-category/1250)

<div class="topic-metadata">

**Author:** [@timriley](https://discourse.dry-rb.org/u/timriley)\
**Replies:** 0

</div>

---

## [Fail to autoload my dependencies with dry-system](https://discourse.dry-rb.org/t/fail-to-autoload-my-dependencies-with-dry-system/1926)

<div class="topic-metadata">

**Author:** [@ericto](https://discourse.dry-rb.org/u/ericto)\
**Replies:** 7\
**Last updated:** [June 23, 2025, 1:52pm UTC](https://discourse.dry-rb.org/t/fail-to-autoload-my-dependencies-with-dry-system/1926 "2025-06-23T13:52:22Z")

</div>

Hello I’m facing an issue to register my dependencies with dry-system and dry-container I’m using dry-container (0.10.0) dry-system (0.27.2) with this code snippet: require 'dry-auto\_inject' di\_container = Dry::Co…

---

## [Getting ProviderNotFoundError when provider isn't directly in container.rb](https://discourse.dry-rb.org/t/getting-providernotfounderror-when-provider-isnt-directly-in-container-rb/1904)

<div class="topic-metadata">

**Author:** [@stor314](https://discourse.dry-rb.org/u/stor314)\
**Replies:** 1\
**Last updated:** [March 3, 2025, 5:24pm UTC](https://discourse.dry-rb.org/t/getting-providernotfounderror-when-provider-isnt-directly-in-container-rb/1904 "2025-03-03T17:24:45Z")

</div>

Hi, I’m trying to configure providers for some api clients that I have. I’ve been following the example provided in the documentation for dry-system, but I keep running into issues trying to get them to be in their own …

---

## [Questions about the dry-system container settings](https://discourse.dry-rb.org/t/questions-about-the-dry-system-container-settings/1730)

<div class="topic-metadata">

**Author:** [@NoComply](https://discourse.dry-rb.org/u/NoComply)\
**Replies:** 3\
**Last updated:** [December 13, 2023, 7:23pm UTC](https://discourse.dry-rb.org/t/questions-about-the-dry-system-container-settings/1730 "2023-12-13T19:23:37Z")

</div>

Hello, I have a hard time understanding how I can change container settings before the container finalization. Let me illustrate my point with a short single file code snippet: # frozen\_string\_literal: true require "…

---

## [dry-system collapse directory](https://discourse.dry-rb.org/t/dry-system-collapse-directory/1699)

<div class="topic-metadata">

**Author:** [@squdge](https://discourse.dry-rb.org/u/squdge)\
**Replies:** 1\
**Last updated:** [July 9, 2023, 7:05am UTC](https://discourse.dry-rb.org/t/dry-system-collapse-directory/1699 "2023-07-09T07:05:04Z")

</div>

How does one go about using dry-system with or without Zeitwerk to collapse directories?

---

## [Enable\_stub raise can't modify frozen class error](https://discourse.dry-rb.org/t/enable-stub-raise-cant-modify-frozen-class-error/1632)

<div class="topic-metadata">

**Author:** [@Tyflomate](https://discourse.dry-rb.org/u/Tyflomate)\
**Replies:** 3\
**Last updated:** [March 31, 2023, 7:38am UTC](https://discourse.dry-rb.org/t/enable-stub-raise-cant-modify-frozen-class-error/1632 "2023-03-31T07:38:04Z")

</div>

Hello, I have an issue with dry-system enable\_stubs method, it causes my test to fail with the following snippet: An error occurred while loading ./spec/policies/user\_policy\_spec.rb. Failure/Error: LeRegistreApi::Conta…

---

## [\[dry-system\] uninitialized constant Dry::System::Plugins](https://discourse.dry-rb.org/t/dry-system-uninitialized-constant-dry-plugins/1546)

<div class="topic-metadata">

**Author:** [@yauheni](https://discourse.dry-rb.org/u/yauheni)\
**Replies:** 1\
**Last updated:** [November 4, 2022, 10:19pm UTC](https://discourse.dry-rb.org/t/dry-system-uninitialized-constant-dry-plugins/1546 "2022-11-04T22:19:08Z")

</div>

Hi everyone, when i try 'require ‘dry/system/container’ i get this error: \[1\] pry(main)\> require 'dry/system/container' NameError: uninitialized constant Dry::System::Plugins from /usr/share/rvm/gems/ruby-2.7.0/gems/dry…

---

## [Registering Classes Instead of Instances](https://discourse.dry-rb.org/t/registering-classes-instead-of-instances/1469)

<div class="topic-metadata">

**Author:** [@ternaryCat](https://discourse.dry-rb.org/u/ternaryCat)\
**Replies:** 9\
**Last updated:** [June 14, 2022, 3:25am UTC](https://discourse.dry-rb.org/t/registering-classes-instead-of-instances/1469 "2022-06-14T03:25:13Z")

</div>

Hi I’m trying to move my application to dry-system. I regiestred my models by “config.component\_dirs.add” and when i try to call my models, i get instances of these classes, but there are methods in the classes that I u…

---

## [What are the differences between the default loader and the zeitwerk loader?](https://discourse.dry-rb.org/t/what-are-the-differences-between-the-default-loader-and-the-zeitwerk-loader/1462)

<div class="topic-metadata">

**Author:** [@wuarmin](https://discourse.dry-rb.org/u/wuarmin)\
**Replies:** 3\
**Last updated:** [May 16, 2022, 11:01am UTC](https://discourse.dry-rb.org/t/what-are-the-differences-between-the-default-loader-and-the-zeitwerk-loader/1462 "2022-05-16T11:01:35Z")

</div>

Hey, I am not a zeitwerk user yet, but I am very interested about the pros and cons regarding the dry system default loader and the zeitwerk plugin? I don’t quite understand why I should need auto loading (eager and la…

---

## [regsitered assets don't seem to be called](https://discourse.dry-rb.org/t/regsitered-assets-dont-seem-to-be-called/1453)

<div class="topic-metadata">

**Author:** [@jedschneider](https://discourse.dry-rb.org/u/jedschneider)\
**Replies:** 5\
**Last updated:** [April 22, 2022, 8:54am UTC](https://discourse.dry-rb.org/t/regsitered-assets-dont-seem-to-be-called/1453 "2022-04-22T08:54:54Z")

</div>

Given the following setup: require "dry/system/container" require 'ostruct' class Connection def call OpenStruct.new(test: "test") end end class Container \< Dry::System::Container register(:connection, call:…

---

## [Dry::System, how to suppress bootable\_dirs deprecation warnings](https://discourse.dry-rb.org/t/dry-system-how-to-suppress-bootable-dirs-deprecation-warnings/1449)

<div class="topic-metadata">

**Author:** [@bestwebua](https://discourse.dry-rb.org/u/bestwebua)\
**Replies:** 1\
**Last updated:** [April 20, 2022, 10:10am UTC](https://discourse.dry-rb.org/t/dry-system-how-to-suppress-bootable-dirs-deprecation-warnings/1449 "2022-04-20T10:10:24Z")

</div>

Hello! Thanks for this awesome library. How to specify bootable\_dirs to suppress deprecation warnings like: \[dry-system\] Dry::System::Container.config.bootable\_dirs (defaulting to 'system/boot') is deprecated and will b…

---

## [Avoid doing http calls in test env](https://discourse.dry-rb.org/t/avoid-doing-http-calls-in-test-env/1374)

<div class="topic-metadata">

**Author:** [@Tao-Galasse](https://discourse.dry-rb.org/u/Tao-Galasse)\
**Replies:** 2\
**Last updated:** [March 22, 2022, 10:33am UTC](https://discourse.dry-rb.org/t/avoid-doing-http-calls-in-test-env/1374 "2022-03-22T10:33:02Z")

</div>

Hi! I’m using dry-system to define some shared http clients in my app. Indeed, some services need to do API calls to Azure, so I used dry-system in an initializer to define global “azure\_clients” without having to log-i…

---

## [Stubbing a Provider (formerly known as Bootable component)](https://discourse.dry-rb.org/t/stubbing-a-provider-formerly-known-as-bootable-component/1437)

<div class="topic-metadata">

**Author:** [@systho](https://discourse.dry-rb.org/u/systho)\
**Replies:** 13\
**Last updated:** [March 18, 2022, 3:48pm UTC](https://discourse.dry-rb.org/t/stubbing-a-provider-formerly-known-as-bootable-component/1437 "2022-03-18T15:48:10Z")

</div>

Hello, I have a quite simple use case : I’m using a s3 provider in order to access… well s3 . It looks like this : App::Container.register\_provider(:s3) do prepare do require 'aws-sdk-s3' end start do u…

---

## [Replace auto\_register! by component\_dirs.add](https://discourse.dry-rb.org/t/replace-auto-register-by-component-dirs-add/1432)

<div class="topic-metadata">

**Author:** [@Tyflomate](https://discourse.dry-rb.org/u/Tyflomate)\
**Replies:** 7\
**Last updated:** [February 24, 2022, 9:08am UTC](https://discourse.dry-rb.org/t/replace-auto-register-by-component-dirs-add/1432 "2022-02-24T09:08:07Z")

</div>

Hello ! I’m trying to upgrade to the latest version of dry\_rails (which comes with latest version of dry\_system) and I’m having troubles with the update of auto\_register! into config.component\_dirs.add 'smth' . I was in …

---

## [Dry-system.build idea](https://discourse.dry-rb.org/t/dry-system-build-idea/1400)

<div class="topic-metadata">

**Author:** [@ianks](https://discourse.dry-rb.org/u/ianks)\
**Replies:** 2\
**Last updated:** [December 17, 2021, 2:58am UTC](https://discourse.dry-rb.org/t/dry-system-build-idea/1400 "2021-12-17T02:58:17Z")

</div>

Been working on a few different projects where I’ve found the need to “build” some dependencies such as web assets, and native libraries. It stuck me how useful dry-system’s lifecycle and dependency resolution system wo…

---

## [Providing custom inflections to dry-system](https://discourse.dry-rb.org/t/providing-custom-inflections-to-dry-system/1380)

<div class="topic-metadata">

**Author:** [@timriley](https://discourse.dry-rb.org/u/timriley)\
**Replies:** 0\
**Last updated:** [November 1, 2021, 10:03pm UTC](https://discourse.dry-rb.org/t/providing-custom-inflections-to-dry-system/1380 "2021-11-01T22:03:22Z")

</div>

Over on Twitter, @dsisnero asked this: how do you add an acronym in dry-system? i wan CLI instead of Cli in my codebase I thought it would be best to answer here for longevity! You can configure a Dry::System::Cont…

---

## [Dry-system, zeitwerk and code reloading](https://discourse.dry-rb.org/t/dry-system-zeitwerk-and-code-reloading/1304)

<div class="topic-metadata">

**Author:** [@rickenharp](https://discourse.dry-rb.org/u/rickenharp)\
**Replies:** 2\
**Last updated:** [October 10, 2021, 10:34pm UTC](https://discourse.dry-rb.org/t/dry-system-zeitwerk-and-code-reloading/1304 "2021-10-10T22:34:32Z")

</div>

I finally got around to play with dry-system 0.19. Since I haven’t used Zeitwerk before, I tried using just Zeitwerk and Roda to see if the code reloading works. That part was relatively easy to get to work. But then I …

---

## [Replace dependency on container](https://discourse.dry-rb.org/t/replace-dependency-on-container/1270)

<div class="topic-metadata">

**Author:** [@aronwolf90](https://discourse.dry-rb.org/u/aronwolf90)\
**Replies:** 4\
**Last updated:** [June 7, 2021, 9:27am UTC](https://discourse.dry-rb.org/t/replace-dependency-on-container/1270 "2021-06-07T09:27:50Z")

</div>

In the company where I work, we use a lot of rails engines, and gems. The gems and engines are the common code across customer projects. The problem we have here is that If one customer want a different behaviors than th…

---

## [Dry-system: example app](https://discourse.dry-rb.org/t/dry-system-example-app/1253)

<div class="topic-metadata">

**Author:** [@wuarmin](https://discourse.dry-rb.org/u/wuarmin)\
**Replies:** 0\
**Last updated:** [April 26, 2021, 6:32pm UTC](https://discourse.dry-rb.org/t/dry-system-example-app/1253 "2021-04-26T18:32:14Z")

</div>

Hey, I started creating an example app try\_hanami\_api\_and\_dry\_system to get started with dry-system. I believe that it is, especially for dry-system-newbies, helpful to have a reference application. Maybe this app would…

---

## [Dry-system: auto import with component identifiers](https://discourse.dry-rb.org/t/dry-system-auto-import-with-component-identifiers/1252)

<div class="topic-metadata">

**Author:** [@wuarmin](https://discourse.dry-rb.org/u/wuarmin)\
**Replies:** 3\
**Last updated:** [April 27, 2021, 4:33am UTC](https://discourse.dry-rb.org/t/dry-system-auto-import-with-component-identifiers/1252 "2021-04-27T04:33:43Z")

</div>

Hey, I’m studying the guides of dry-system and I am very excited about the progress regarding Hanami 2.0. Thank you for this. I have a question about the component identifiers section (dry-rb - dry-system master - Auto…
