@chubbyjs/chubbyjs-laminas-config

Chubbyjs container adapter using laminas service manager configuration.

Usage no npm install needed!

<script type="module">
  import chubbyjsChubbyjsLaminasConfig from 'https://cdn.skypack.dev/@chubbyjs/chubbyjs-laminas-config';
</script>

README

chubbyjs-laminas-config

Build Status Coverage Status Infection MSI

bugs code_smells coverage duplicated_lines_density ncloc sqale_rating alert_status reliability_rating security_rating sqale_index vulnerabilities

Description

A PSR-11 container implementation.

Requirements

Installation

Through NPM as @chubbyjs/chubbyjs-laminas-config.

npm i @chubbyjs/chubbyjs-laminas-config@1.0

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 2020