zendframework/zend-config-aggregator-modulemanager
最新稳定版本:1.0.1
Composer 安装命令:
composer require zendframework/zend-config-aggregator-modulemanager
包简介
Consume zend-mvc modules as configuration providers within zend-config-aggregator.
README 文档
README
Repository abandoned 2019-12-31
This repository has moved to laminas/laminas-config-aggregator-modulemanager.
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.
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:
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.
- File issues at https://github.com/zendframework/zend-config-aggregator-modulemanager/issues
- Documentation is at https://docs.zendframework.com/zend-config-aggregator-modulemanager/
zendframework/zend-config-aggregator-modulemanager 适用场景与选型建议
zendframework/zend-config-aggregator-modulemanager 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 42.01k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2018 年 04 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 zendframework/zend-config-aggregator-modulemanager 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 zendframework/zend-config-aggregator-modulemanager 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 42.01k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 21
- 依赖项目数: 1
- 推荐数: 1
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2018-04-04