Skip to content

Commit

Permalink
PHP version support (#8)
Browse files Browse the repository at this point in the history
PHP version support
  • Loading branch information
snapshotpl authored Oct 3, 2017
1 parent eda72b4 commit 4df69ae
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.idea
composer.lock
vendor
data
data
21 changes: 10 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@ language: php
matrix:
fast_finish: true
include:
- php: 5.5
env:
- DEPS=lowest
- php: 5.5
env:
- DEPS=latest
- php: 5.6
env:
- DEPS=lowest
Expand All @@ -21,17 +15,22 @@ matrix:
- php: 7
env:
- DEPS=latest
- php: hhvm
- php: 7.1
env:
- DEPS=lowest
- php: 7.1
env:
- DEPS=latest
- php: 7.2
env:
- DEPS=lowest
- php: hhvm
- php: 7.2
env:
- DEPS=latest

install:
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update --no-interaction --prefer-source ; fi
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --no-interaction --prefer-source --prefer-lowest ; fi
- composer info -i
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update --no-interaction ; fi
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --no-interaction --prefer-lowest ; fi

script:
- ./vendor/bin/phpunit
3 changes: 0 additions & 3 deletions Module.php

This file was deleted.

12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"name": "rstgroup/request-id-module",
"require": {
"php": ">=5.5",
"zendframework/zend-modulemanager": "^2.4",
"php": ">=5.6",
"zendframework/zend-eventmanager": "^2.4 || ^3",
"zendframework/zend-http": "^2.4",
"zendframework/zend-mvc": "^2.4 || ^3",
"zendframework/zend-servicemanager": "^2.4 || ^3",
"zendframework/zend-stdlib": "^2.4 || ^3",
"zendframework/zend-psr7bridge": "^0.2",
"php-middleware/request-id": "^3.0.0"
"zendframework/zend-psr7bridge": "^1.0",
"php-middleware/request-id": "^3.0"
},
"require-dev": {
"phpunit/phpunit": "^4.8",
"zendframework/zend-config": "^2.4",
"phpunit/phpunit": "^5.7.22",
"zendframework/zend-modulemanager": "^2.4",
"zendframework/zend-config": "^2.4 | ^3.0",
"zendframework/zend-i18n": "^2.4",
"zendframework/zend-log": "^2.4",
"zendframework/zend-serializer": "^2.4",
Expand Down
6 changes: 2 additions & 4 deletions src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

namespace RstGroup\RequestIdModule;

use Zend\ModuleManager\Feature\ConfigProviderInterface;

final class Module implements ConfigProviderInterface
final class Module
{
/**
* @return array
Expand All @@ -13,4 +11,4 @@ public function getConfig()
{
return include __DIR__ . '/../config/module.config.php';
}
}
}

0 comments on commit 4df69ae

Please sign in to comment.