Add ZF2 or ZF3 modules to your Zend Expressive application via this bridge.
- 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();
It loads every given module with the loadModule
and loadModule.resolve
events from the module manager.
It does not trigger any init
or onBootstrap
methods from the module definition.
Feel free to ask any questions or open own pull requests.