Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Added new tool - expressive-module (#8 and #9) #12

Merged
merged 29 commits into from
Mar 1, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
786700f
Added new tool - expressive-module
michalbundyra Feb 17, 2017
39f522f
Used refactor version of zend-component-installer
michalbundyra Feb 18, 2017
fc0e592
PHPDocs fixed allowed param type
michalbundyra Feb 20, 2017
714db33
Removed unused import
michalbundyra Feb 20, 2017
ef46142
Added command chains implementation
michalbundyra Feb 20, 2017
6ccf696
Removed redundant blank lines
michalbundyra Feb 20, 2017
9a46e05
Updated chmod for bin file (+x)
michalbundyra Feb 20, 2017
375a205
Suppressing output on checking composer binary
michalbundyra Feb 20, 2017
d91f8d0
Updated to zf-composer-autoloading v2-dev with enable and disable com…
michalbundyra Feb 20, 2017
3f63e3f
Method getCommand expects only first script argument
michalbundyra Feb 20, 2017
2b3222f
Suppress errors on checking composer binary
michalbundyra Feb 20, 2017
28ed576
Command's process methods ca throw only module RuntimeException
michalbundyra Feb 20, 2017
fbd63bf
Updated PHPDocs comment
michalbundyra Feb 20, 2017
b4e0315
Allow to use with zend-code 2.6.3
michalbundyra Feb 20, 2017
e4ad920
Added expressive-module Help tests
michalbundyra Feb 20, 2017
eed75d2
Updated to latest dev version of zfcampus/zf-composer-autoloading
michalbundyra Feb 22, 2017
acd5d05
Construct command without moduleName and expect module name in process
michalbundyra Feb 22, 2017
bdc4c4c
Removed "chmod" property in Create command
michalbundyra Feb 22, 2017
7813e67
Use constant from interface, not from injector
michalbundyra Feb 22, 2017
f388976
Added tests for commands "create", "register", "deregister"
michalbundyra Feb 22, 2017
004d4a1
Changed $projectDir property visibility to private
michalbundyra Feb 22, 2017
fa67770
Updated arguments checks and messages
michalbundyra Feb 22, 2017
62366ce
Added tests for Module\Command
michalbundyra Feb 22, 2017
ffdcd0c
Updated to released dependencies
michalbundyra Feb 22, 2017
db3d178
Updated travis configuration to work with legacy deps
michalbundyra Feb 22, 2017
1b4763f
Added success messages
michalbundyra Feb 22, 2017
29a676c
Reorder bin scripts in composer - alphabetica order
michalbundyra Mar 1, 2017
1d35ea7
Removed class property and pass modulePath as argument
michalbundyra Mar 1, 2017
b3952af
Updated help messages
michalbundyra Mar 1, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ env:
global:
- COMPOSER_ARGS="--no-interaction"
- COVERAGE_DEPS="satooshi/php-coveralls"
- LEGACY_DEPS="phpunit/phpunit php-mock/php-mock-phpunit"

matrix:
include:
Expand Down Expand Up @@ -60,11 +61,11 @@ before_install:
- travis_retry composer self-update

install:
- if [[ $TRAVIS_PHP_VERSION =~ ^5.6 ]]; then travis_retry composer update $COMPOSER_ARGS phpunit/phpunit --with-dependencies ; fi
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs
- if [[ $TRAVIS_PHP_VERSION =~ ^5.6 ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
- travis_retry composer install $COMPOSER_ARGS
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
- composer show

script:
Expand All @@ -73,7 +74,7 @@ script:
- if [[ $CS_CHECK == 'true' ]]; then composer license-check ; fi

after_script:
- if [[ $TEST_COVERAGE == 'true' ]]; then composer upload-coverage ; fi
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer upload-coverage ; fi

notifications:
irc: "irc.freenode.org#zftalk.dev"
Expand Down
27 changes: 27 additions & 0 deletions bin/expressive-module
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/usr/bin/env php
<?php // @codingStandardsIgnoreFile
/**
* Script for deal with expressive modules.
*
* @see https://github.com/zendframework/zend-expressive-tooling for the canonical source repository
* @copyright Copyright (c) 2017 Zend Technologies USA Inc. (http://www.zend.com)
* @license https://github.com/zendframework/zend-expressive-tooling/blob/master/LICENSE.md New BSD License
*/

namespace Zend\Expressive\Tooling\Module;

use Zend\Stdlib\ConsoleHelper;

// Setup/verify autoloading
if (file_exists($a = __DIR__ . '/../../../autoload.php')) {
require $a;
} elseif (file_exists($a = __DIR__ . '/../vendor/autoload.php')) {
require $a;
} else {
fwrite(STDERR, 'Cannot locate autoloader; please run "composer install"' . PHP_EOL);
exit(1);
}

$command = new Command($argv[0], new ConsoleHelper());
$return = $command->process(array_slice($argv, 1));
exit($return);
13 changes: 9 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,19 @@
},
"require": {
"php": "^5.6 || ^7.0",
"zendframework/zend-code": "^3.1 || ^2.6.3",
"zendframework/zend-component-installer": "^0.7",
"zendframework/zend-expressive": "^2.0 || dev-2.0.X@dev",
"zendframework/zend-code": "^3.1",
"zendframework/zend-stdlib": "^3.1",
"zendframework/zend-stratigility": "^2.0"
"zendframework/zend-stratigility": "^2.0",
"zfcampus/zf-composer-autoloading": "^2.0"
},
"require-dev": {
"malukenho/docheader": "^0.1.5",
"mikey179/vfsStream": "^1.6",
"phpunit/phpunit": "^5.7.13 || ^6.0.6",
"mikey179/vfsStream": "^1.6.4",
"mockery/mockery": "^0.9.8",
"php-mock/php-mock-phpunit": "^2.0 || ^1.1.2",
"phpunit/phpunit": "^6.0.7 || ^5.7.14",
"zendframework/zend-coding-standard": "~1.0.0"
},
"autoload": {
Expand All @@ -39,6 +43,7 @@
},
"bin": [
"bin/expressive-migrate-original-messages",
"bin/expressive-module",
"bin/expressive-pipeline-from-config",
"bin/expressive-scan-for-error-middleware"
],
Expand Down
Loading