robopuff / zend-config-aggregator-class-provider
This package is abandoned and no longer maintained.
No replacement package was suggested.
A config aggregator provider designed to discover classes within provided glob pattern
v1.0.0
2019-05-20 14:06 UTC
Requires
- php: ^7.1
- zendframework/zend-config-aggregator: ^1.1
- zendframework/zend-stdlib: ^3.1
Requires (Dev)
- phpstan/phpstan: ^0.10
- phpunit/php-code-coverage: ^6.0
- phpunit/phpunit: ^7.0
- squizlabs/php_codesniffer: ^3.0
README
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
Usage
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.