2017 © Pedro PelĂĄez
 

library zend-config-aggregator-modulemanager

Consume zend-mvc modules as configuration providers within zend-config-aggregator.

image

zendframework/zend-config-aggregator-modulemanager

Consume zend-mvc modules as configuration providers within zend-config-aggregator.

  • Wednesday, April 4, 2018
  • by zendframework
  • Repository
  • 13 Watchers
  • 0 Stars
  • 358 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 80 % Grown

The README.md

zend-config-aggregator-modulemanager

Repository abandoned 2019-12-31

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

Build Status Coverage Status, (*2)

Provides an extension to the zendframework/zend-config-aggregator so zendframework/zend-mvc modules can be parsed into the new config structure, e.g. for zendframework/zend-expressive or other projects., (*3)

Usage

use Zend\ConfigAggregator\ConfigAggregator;
use Zend\ConfigAggregatorModuleManager\ZendModuleProvider;
use My\Zend\MvcModule\Module as MyZendMvcModule;

namespace My\Zend\MvcModule
{
    class Module 
    {
        public function getConfig()
        {
            return [
                'service_manager' => [
                    'invokables' => [
                        Service\MyService::class => Service\MyService::class, 
                    ],
                ],
            ];
        }
    }
}

namespace My\Zend\MvcModule\Service {
    class MyService 
    {
    }
}

$aggregator = new ConfigAggregator([
    new ZendModuleProvider(new MyZendMvcModule()),
]);

var_dump($aggregator->getMergedConfig());

Using this provider, the Module class is being parsed for zendframework/zend-modulemanager interfaces or methods. Just the same way as zendframework/zend-mvc does. Therefore, the output of the example would be:, (*4)

array(1) {
  'dependencies' => 
  array(1) {
    'invokables' =>
    array(1) {
       'My\Zend\MvcModule\Service\MyService' =>
       string(35) "My\Zend\MvcModule\Service\MyService"
    }
  }
}

For more details, please refer to the documentation., (*5)


  • File issues at https://github.com/zendframework/zend-config-aggregator-modulemanager/issues
  • Documentation is at https://docs.zendframework.com/zend-config-aggregator-modulemanager/

The Versions

04/04 2018

dev-develop

dev-develop

Consume zend-mvc modules as configuration providers within zend-config-aggregator.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Maximilian Bösing

04/04 2018

dev-master

9999999-dev

Consume zend-mvc modules as configuration providers within zend-config-aggregator.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Maximilian Bösing

04/04 2018

1.0.0

1.0.0.0

Consume zend-mvc modules as configuration providers within zend-config-aggregator.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Maximilian Bösing