This repository has been archived by the owner on Jan 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
2,828 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
coverage_clover: clover.xml | ||
json_path: coveralls-upload.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/** | ||
* @see https://github.com/zendframework/zend-config-aggregator-modulemanager for the canonical source repository | ||
* @copyright Copyright (c) %regexp:(20\d{2}-)?20\d{2}% Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license https://github.com/zendframework/zend-config-aggregator-modulemanager/blob/master/LICENSE.md | ||
* New BSD License | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/.coveralls.yml export-ignore | ||
/.docheader export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.travis.yml export-ignore | ||
/composer.lock export-ignore | ||
/docs/ export-ignore | ||
/mkdocs.yml export-ignore | ||
/phpcs.xml export-ignore | ||
/phpunit.xml.dist export-ignore | ||
/test/ export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
composer.phar | ||
/clover.xml | ||
/coveralls-upload.json | ||
/docs/html/ | ||
/phpunit.xml | ||
/vendor/ | ||
|
||
# Commit your application's lock file http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file | ||
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file | ||
# composer.lock | ||
/zf-mkdoc-theme.tgz | ||
/zf-mkdoc-theme/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
sudo: false | ||
|
||
language: php | ||
|
||
branches: | ||
except: | ||
- /^release-.*$/ | ||
- /^ghgfk-.*$/ | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
- $HOME/.local | ||
- zf-mkdoc-theme | ||
|
||
services: | ||
- mongodb | ||
|
||
env: | ||
global: | ||
- SITE_URL="https://zendframework.github.io/zend-cache-mongo" | ||
- GH_USER_NAME="Matthew Weier O'Phinney" | ||
- GH_USER_EMAIL="matthew@weierophinney.net" | ||
- GH_REF="github.com/zendframework/zend-cache-mongo.git" | ||
- secure: "ZYYlfFWTde5MCn6twsm/+s+mx4bLEaVFFG+tuaeiz7nCx+z495D6FxruzBbY1zheX9rNo9qReDo0Tyfn2wrUH8SJYbR9iKDqB95GPDDPW+I23Mw3Uuddr8XqbtabTJVqEQg6iAu7IIQG4TvFFmdq/g26jWim8Cngg/5zZh4Q2GuLSjIKRJBpLe7mSTjQVqaApS/a8wmvPJiSoqxWmY8Botc88ZXMmkRDPQoqEdZOeS4i029cGMXUnzGj7Vl7qwfol6Yj/R441Hd84Vt8P8BOdRyW0tjmllXLXJUYFKCcP5fEqIujbU68FwJMidCPzBcXv2N0klW43ViVwdJD6gBgZStwOyENGeEw1VcbZ6JReMa68F1mtqLhBhZtF8WRUI8+TYMYmLPGMVTcets4P3nIB18uX1CittwGDD2y2OL8MDvuIuaSQFoj/PdUb+BC/DvvmtPGnF6MLTAUjqNlxYbmzopufDEtivWHsqeyxHZj0L0HD5KkMslD9wnngfi+lcQ5e3iFQe/H5vQKE0BfooukxErIXk00cwwMoMjFY4v95CS0BKFhA4HMclKpGEA94CH4STxwyD2Nz/z6iGPqkZuzqDLOKhLr2FsY7bFbvEdNu57G3PGahtYJtc31lcnwKf2t1ALGcG9LS0/ezJSzqx659hWL0B5qgHjCNDnAyKJcNxM=" | ||
|
||
matrix: | ||
include: | ||
- php: 5.6 | ||
env: | ||
- DEPS=lowest | ||
- CHECK_CS=true | ||
#- DEPLOY_DOCS="$(if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then echo -n 'true' ; else echo -n 'false' ; fi)" | ||
#- PATH="$HOME/.local/bin:$PATH" | ||
- php: 5.6 | ||
env: | ||
- DEPS=latest | ||
- TEST_COVERAGE=true | ||
|
||
notifications: | ||
irc: "irc.freenode.org#zftalk.dev" | ||
email: false | ||
|
||
before_install: | ||
- if [[ $TRAVIS_PHP_VERSION != "hhvm" && $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini ; fi | ||
- if [[ $TRAVIS_PHP_VERSION != 'hhvm' ]]; then phpenv config-add .ci/mongo.ini ; fi | ||
|
||
install: | ||
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update ; fi | ||
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable ; fi | ||
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev satooshi/php-coveralls:^1.0 ; fi | ||
- travis_retry composer install | ||
- composer show | ||
|
||
script: | ||
- if [[ $TEST_COVERAGE == 'true' ]]; then | ||
composer run-script test -- --colors=always --coverage-clover clover.xml ; | ||
else | ||
composer run-script test -- --colors=always ; | ||
fi | ||
- if [[ $CHECK_CS == 'true' ]]; then composer cs-check ; fi | ||
- if [[ $DEPLOY_DOCS == "true" && "$TRAVIS_TEST_RESULT" == "0" ]]; then | ||
travis_retry curl -sSL https://raw.githubusercontent.com/zendframework/zf-mkdoc-theme/master/theme-installer.sh | bash ; | ||
fi | ||
|
||
after_script: | ||
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry ./vendor/bin/coveralls -v -x clover.xml ; fi | ||
|
||
after_success: | ||
- if [[ $DEPLOY_DOCS == "true" ]]; then ./zf-mkdoc-theme/deploy.sh ; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file, in reverse chronological order by release. | ||
|
||
## 1.0.0 - TBD | ||
|
||
### Added | ||
|
||
- Nothing. | ||
|
||
### Changed | ||
|
||
- Nothing. | ||
|
||
### Deprecated | ||
|
||
- Nothing. | ||
|
||
### Removed | ||
|
||
- Nothing. | ||
|
||
### Fixed | ||
|
||
- Nothing. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Copyright (c) 2018, Zend Technologies USA, Inc. | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without modification, | ||
are permitted provided that the following conditions are met: | ||
|
||
- Redistributions of source code must retain the above copyright notice, this | ||
list of conditions and the following disclaimer. | ||
|
||
- Redistributions in binary form must reproduce the above copyright notice, this | ||
list of conditions and the following disclaimer in the documentation and/or | ||
other materials provided with the distribution. | ||
|
||
- Neither the name of Zend Technologies USA, Inc. nor the names of its | ||
contributors may be used to endorse or promote products derived from this | ||
software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR | ||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# zend-config-aggregator-modulemanager | ||
|
||
[](https://secure.travis-ci.org/zendframework/zend-config-aggregator-modulemanager) | ||
[](https://coveralls.io/github/zendframework/zend-config-aggregator-modulemanager?branch=master) | ||
|
||
Provides an extension to the `zendframework/zend-config-aggregator` so `zendframework/zend-mvc` | ||
modules can be parsed into the new config structure, e.g. for `zendframework/zend-expressive` | ||
or other projects. | ||
|
||
## Usage | ||
|
||
```php | ||
use Zend\ConfigAggregator\ConfigAggregator; | ||
use Zend\ConfigAggregator\ModuleManager\ZendModuleProvider; | ||
use My\Zend\MvcModule\Module as MyZendMvcModule; | ||
|
||
namespace My\Zend\MvcModule | ||
{ | ||
class Module | ||
{ | ||
public function getConfig() | ||
{ | ||
return [ | ||
'service_manager' => [ | ||
'invokables' => [ | ||
Service\MyService::class => Service\MyService::class, | ||
], | ||
], | ||
]; | ||
} | ||
} | ||
} | ||
|
||
namespace My\Zend\MvcModule\Service { | ||
class MyService | ||
{ | ||
} | ||
} | ||
|
||
$aggregator = new ConfigAggregator([ | ||
new ZendModuleProvider(new MyZendMvcModule()), | ||
]); | ||
|
||
var_dump($aggregator->getMergedConfig()); | ||
``` | ||
|
||
Using this provider, the Module class is being parsed for `zendframework/zend-modulemanager` interfaces or methods. | ||
Just the same way as `zendframework/zend-mvc` does. Therefore, the output of the example would be: | ||
|
||
```php | ||
array(1) { | ||
'dependencies' => | ||
array(1) { | ||
'invokables' => | ||
array(1) { | ||
'My\Zend\MvcModule\Service\MyService' => | ||
string(35) "My\Zend\MvcModule\Service\MyService" | ||
} | ||
} | ||
} | ||
``` | ||
|
||
For more details, please refer to the [documentation](https://docs.zendframework.com/zend-config-aggregator-modulemanager/). | ||
|
||
----- | ||
|
||
- File issues at https://github.com/zendframework/zend-config-aggregator-modulemanager/issues | ||
- Documentation is at https://docs.zendframework.com/zend-config-aggregator-modulemanager/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"name": "zendframework/zend-config-aggregator-modulemanager", | ||
"description": "zendframework/zend-modulemanager adapter for zendframework/zend-config-aggregator to provide zendframework/zend-mvc Module configuration which do not provide a ConfigProvider", | ||
"license": "BSD-3-Clause", | ||
"authors": [ | ||
{ | ||
"name": "Maximilian Bösing", | ||
"email": "max@boesing.email" | ||
} | ||
], | ||
"require": { | ||
"php": "^5.6 || 7.0", | ||
"zendframework/zend-config-aggregator": "^1.1", | ||
"zendframework/zend-modulemanager": "^2.8" | ||
}, | ||
"require-dev": { | ||
"malukenho/docheader": "^0.1.7", | ||
"phpunit/phpunit": "5.7.21 || 6.3", | ||
"zendframework/zend-coding-standard": "~1.0.0", | ||
"zendframework/zend-config": "^3.1", | ||
"zendframework/zend-servicemanager": "^3.3" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Zend\\ConfigAggregator\\ModuleManager\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"ZendTest\\ConfigAggregator\\ModuleManager\\": "test/" | ||
} | ||
}, | ||
"config": { | ||
"sort-packages": true | ||
}, | ||
"extra": { | ||
"branch-alias": { | ||
"dev-master": "1.0.x-dev" | ||
} | ||
}, | ||
"scripts": { | ||
"check": [ | ||
"@cs-check", | ||
"@test" | ||
], | ||
"cs-check": "phpcs", | ||
"cs-fix": "phpcbf", | ||
"test": "phpunit --colors=always", | ||
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml" | ||
} | ||
} |
Oops, something went wrong.