2017 © Pedro Peláez
 

library zend-auradi-config

PSR-11 Aura.DI container configurator for ZF and Expressive applications

image

zendframework/zend-auradi-config

PSR-11 Aura.DI container configurator for ZF and Expressive applications

  • Wednesday, April 11, 2018
  • by zendframework
  • Repository
  • 13 Watchers
  • 3 Stars
  • 1,417 Installations
  • PHP
  • 3 Dependents
  • 2 Suggesters
  • 3 Forks
  • 0 Open issues
  • 13 Versions
  • 19 % Grown

The README.md

zend-auradi-config

Repository abandoned 2019-12-31

This repository has moved to laminas/laminas-auradi-config., (*1)

Build Status Coverage Status, (*2)

This library provides utilities to configure a PSR-11 compatible Aura.Di container using zend-servicemanager configuration., (*3)

Installation

Run the following to install this library:, (*4)

$ composer require zendframework/zend-auradi-config

Configuration

To get a configured Aura.Di container, do the following:, (*5)

<?php
use Zend\AuraDi\Config\Config;
use Zend\AuraDi\Config\ContainerFactory;

$factory = new ContainerFactory();

$container = $factory(
    new Config([
        'dependencies' => [
            'services'   => [],
            'invokables' => [],
            'factories'  => [],
            'aliases'    => [],
            'delegators' => [],
        ],
        // ... other configuration
    ])
);

The dependencies sub associative array can contain the following keys:, (*6)

  • services: an associative array that maps a key to a specific service instance.
  • invokables: an associative array that map a key to a constructor-less service; i.e., for services that do not require arguments to the constructor. The key and service name usually are the same; if they are not, the key is treated as an alias.
  • factories: an associative array that maps a service name to a factory class name, or any callable. Factory classes must be instantiable without arguments, and callable once instantiated (i.e., implement the __invoke() method).
  • aliases: an associative array that maps an alias to a service name (or another alias).
  • delegators: an associative array that maps service names to lists of delegator factory keys, see the Expressive delegators documentation for more details.

Please note, that the whole configuration is available in the $container on config key:, (*7)

$config = $container->get('config');
  

Using with Expressive

Replace the contents of config/container.php with the following:, (*8)

<?php

use Zend\AuraDi\Config\Config;
use Zend\AuraDi\Config\ContainerFactory;

$config  = require __DIR__ . '/config.php';
$factory = new ContainerFactory();

return $factory(new Config($config));

The Versions

11/04 2018

dev-develop

dev-develop

PSR-11 Aura.DI container configurator for ZF and Expressive applications

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

container zendframework zf expressive psr-11 aura di

11/04 2018

dev-master

9999999-dev

PSR-11 Aura.DI container configurator for ZF and Expressive applications

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

container zendframework zf expressive psr-11 aura di

11/04 2018

1.0.1

1.0.1.0

PSR-11 Aura.DI container configurator for ZF and Expressive applications

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

container zendframework zf expressive psr-11 aura di

15/03 2018

1.0.0

1.0.0.0

PSR-11 Aura.DI container configurator for ZF and Expressive applications

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

container zendframework zf expressive psr-11 aura di

15/03 2018

dev-release-1.0.0

dev-release-1.0.0

PSR-11 Aura.DI container configurator for ZF and Expressive applications

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

container zendframework zf expressive psr-11 aura di

26/02 2018

1.0.0rc1

1.0.0.0-RC1

PSR-11 Aura.DI container configurator for ZF and Expressive applications

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

container zendframework zf expressive psr-11 aura di

26/02 2018

0.2.2

0.2.2.0

PSR-11 Aura.DI container configurator for ZF and Expressive applications

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

container zendframework zf expressive psr-11 aura di

08/02 2018

dev-hotfix/invokable-aliases

dev-hotfix/invokable-aliases

PSR-11 Aura.DI container configurator for ZF and Expressive applications

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

container zendframework zf expressive psr-11 aura di

07/02 2018

1.0.0alpha1

1.0.0.0-alpha1

PSR-11 Aura.DI container configurator for ZF and Expressive applications

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

container zendframework zf expressive psr-11 aura di

23/01 2018

0.2.1

0.2.1.0

PSR-11 Aura.DI container configurator for ZF and Expressive applications

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

container zendframework zf expressive psr-11 aura di

21/11 2017

0.2.0

0.2.0.0

PSR-11 Aura.DI container configurator for ZF and Expressive applications

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

container zendframework zf expressive psr-11 aura di

28/09 2017

0.1.1

0.1.1.0 https://github.com/webimpress/zend-auradi-config

PSR-11 Aura.DI container configurator for ZF applications

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

container zendframework zf psr-11 aura di

27/09 2017

0.1.0

0.1.0.0 https://github.com/webimpress/zend-auradi-config

PSR-11 Aura.DI container configurator for ZF applications

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

container zendframework zf psr-11 aura di