reinfi / zfe-module-bridge-provider
An Zend Expressive module for loading ZF2 or ZF3 modules.
Installs: 11 661
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=7.0
- zendframework/zend-loader: ^2.5
- zendframework/zend-modulemanager: ^2.7
Requires (Dev)
- phpunit/phpcov: ^3.0
- phpunit/phpunit: ^5.7
- satooshi/php-coveralls: ^1.0
This package is auto-updated.
Last update: 2024-11-10 06:38:39 UTC
README
Add ZF2 or ZF3 modules to your Zend Expressive application via this bridge.
Installation
- Install with Composer:
composer require reinfi/zfe-module-bridge-provider
. - Use
ModuleBridgeProvider
in yourconfig.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.