https://github.com/reinfi/zfe-module-bridge-provider
Expressive provider to add ZF2 or ZF3 modules to your expressive application
https://github.com/reinfi/zfe-module-bridge-provider
expressive provider zend-framework
Last synced: 2 months ago
JSON representation
Expressive provider to add ZF2 or ZF3 modules to your expressive application
- Host: GitHub
- URL: https://github.com/reinfi/zfe-module-bridge-provider
- Owner: reinfi
- License: mit
- Created: 2017-11-25T10:41:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-12T07:16:54.000Z (about 7 years ago)
- Last Synced: 2025-01-12T07:35:47.827Z (4 months ago)
- Topics: expressive, provider, zend-framework
- Language: PHP
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/reinfi/zfe-module-bridge-provider)
[](https://coveralls.io/github/reinfi/zfe-module-bridge-provider?branch=master)Add ZF2 or ZF3 modules to your Zend Expressive application via this bridge.
### Installation
1. Install with Composer: `composer require reinfi/zfe-module-bridge-provider`.
2. Use `ModuleBridgeProvider` in your `config.php`:```php
$aggregator = new ConfigAggregator([
new \Reinfi\ModuleBridgeProvider\ModuleBridgeProvider(
[
YourModule::class,
AnotherModule::class,
]
),
]);return $aggregator->getMergedConfig();
```### What it does.
It loads every given module with the `loadModule` and `loadModule.resolve` events from the module manager.
### What it not does.
It does not trigger any `init` or `onBootstrap` methods from the module definition.
### FAQ
Feel free to ask any questions or open own pull requests.