Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@chubbyjs/chubbyjs-laminas-config

chubbyjs12MITdeprecated1.0.3TypeScript support: included

use @chubbyts/chubbyts-dic-config instead

Chubbyjs container adapter using laminas service manager configuration.

chubbyjs-container, chubbyjs, laminas, psr-11

readme

chubbyjs-laminas-config

CI Coverage Status Infection MSI npm-version

bugs code_smells coverage duplicated_lines_density ncloc sqale_rating alert_status reliability_rating security_rating sqale_index vulnerabilities

Description

Chubbyjs container adapter using laminas service manager configuration.

Requirements

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
}));

Dominik Zogg 2021