Skip to content

Commit

Permalink
馃摎 migrate to laminas framework #43.
Browse files Browse the repository at this point in the history
  • Loading branch information
elie29 committed Jan 15, 2020
1 parent 10e1047 commit 551e433
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
[![Coverage Status](https://coveralls.io/repos/github/elie29/zend-di-config/badge.svg)](https://coveralls.io/github/elie29/zend-di-config)

## Introduction
[zend-phpdi-config](https://packagist.org/packages/elie29/zend-phpdi-config) acts as a bridge to configure a PSR-11 compatible [PHP-DI](http://php-di.org) container using zend-servicemanager configuration.
It can be used with [Zend Framework](https://framework.zend.com) and [Zend Expressive](https://docs.zendframework.com/zend-expressive).
[zend-phpdi-config](https://packagist.org/packages/elie29/zend-phpdi-config) acts as a bridge to configure a PSR-11 compatible [PHP-DI](http://php-di.org) container using service manager configuration.
It can be used with [Laminas](https://getlaminas.org/) and [Mezzio](https://docs.mezzio.dev/) starting from v6.0.0

This library uses autowirng technique, cache compilation and cache definitions as defined in [PHP-DI](http://php-di.org).

## Configuration

[Service Manager Configuration](https://docs.zendframework.com/zend-servicemanager/configuring-the-service-manager/)
[Service Manager Configuration](https://docs.laminas.dev/laminas-servicemanager/configuring-the-service-manager/)

To get a configured [PSR-11](http://www.php-fig.org/psr/psr-11/)
PHP-DI container, do the following:
Expand Down Expand Up @@ -66,7 +66,7 @@ The `dependencies` sub associative array can contain the following keys:
another alias).
- `delegators`: an associative array that maps service names to lists of
delegator factory keys, see the
[Expressive delegators documentation](https://docs.zendframework.com/zend-servicemanager/delegators/)
[Expressive delegators documentation](https://docs.laminas.dev/laminas-servicemanager/delegators/)
for more details.

>**N.B.:** The whole configuration -- unless `dependencies` -- is merged in a `config` key within the `$container`:
Expand All @@ -83,7 +83,7 @@ to the autowires key.

Example of adding ConsoleHelper to a config.php:
>```console
>./vendor/bin/add-autowires-entry config.php "Zend\\Stdlib\\ConsoleHelper"
>./vendor/bin/add-autowires-entry config.php "Lamnias\\Stdlib\\ConsoleHelper"
>[DONE] Changes written to config.php
>```
Expand Down

0 comments on commit 551e433

Please sign in to comment.