Dependency injection container creation by config, inspired by laminas-config.
npm install @chubbyts/chubbyts-dic-config














Dependency injection container creation by config, inspired by [mezzio-config][2].
* node: 18
* [@chubbyts/chubbyts-dic][3]: ^2.0.0
* [@chubbyts/chubbyts-dic-types][4]: ^2.0.0
Through NPM as [@chubbyts/chubbyts-dic-config][1].
``ts`
npm i @chubbyts/chubbyts-dic-config@^2.0.1
`ts
import {
createContainerByConfigFactory,
ConfigFactory,
ConfigDelegator,
} from '@chubbyts/chubbyts-dic-config/dist/dic-config';
const containerByConfigFactory = createContainerByConfigFactory({
dependencies: {
services: new Map
factories: new Map
aliases: new Map
delegators: new Map
},
// ... other configuration
});
const container = containerByConfigFactory();
``
2025 Dominik Zogg
[1]: https://www.npmjs.com/package/@chubbyts/chubbyts-dic-config
[2]: https://docs.mezzio.dev/mezzio/v3/features/container/config/
[3]: https://www.npmjs.com/package/@chubbyts/chubbyts-dic
[4]: https://www.npmjs.com/package/@chubbyts/chubbyts-dic-types