Provides an extension to the zendframework/zend-config-aggregator
to allow config class auto discovery based
on glob pattern provided.
$ composer require robopuff/zend-config-aggregator-class-provider
use Robopuff\ConfigAggregator\ClassProvider\ClassDiscoveryProvider;
use Zend\ConfigAggregator\ConfigAggregator;
$aggregator = new ConfigAggregator([
new ClassDiscoveryProvider(__DIR__ . '/src/{Dir1,Dir2}/*/ConfigProvider.php'),
new ClassDiscoveryProvider([
'src/Dir1/*/ConfigProvider.php',
'src/Dir2/*/ConfigProvider.php'
),
]);
return $aggregator->getMergedConfig();
For more details, please refer to the documentation.
To generate docs use MKDocs with theme rbpf_cinder, a fork of cinder theme.