chubbyjs-laminas-config
Description
Chubbyjs container adapter using laminas service manager configuration.
Requirements
- node: 12
- @chubbyjs/chubbyjs-container: ^1.0.7
Installation
Through NPM as @chubbyjs/chubbyjs-laminas-config.
npm i @chubbyjs/chubbyjs-laminas-config@1.0.3
Usage
import Config from '@chubbyjs/chubbyjs-laminas-config/dist/Config';
import ContainerFactory from '@chubbyjs/chubbyjs-laminas-config/dist/ContainerFactory';
import LaminasDelegatorInterface from '@chubbyjs/chubbyjs-laminas-config/dist/LaminasDelegatorInterface';
import LaminasFactoryInterface from '@chubbyjs/chubbyjs-laminas-config/dist/LaminasFactoryInterface';
import PsrContainerInterface from '@chubbyjs/psr-container/dist/ContainerInterface';
const container: PsrContainerInterface = ContainerFactory(new Config({
dependencies: {
services: new Map<string, any>(),
factories: new Map<string, LaminasFactoryInterface>(),
aliases: new Map<string, string>(),
delegators: new Map<string, Array<LaminasDelegatorInterface>>()
},
// ... other configuration
}));
Copyright
Dominik Zogg 2021