Skip to content

Commit 680518f

Browse files
authored
Enhance (#55)
1 parent a35a2ae commit 680518f

File tree

4 files changed

+24
-16
lines changed

4 files changed

+24
-16
lines changed

.scrutinizer.yml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ build:
2323
format: 'php-clover'
2424
- php-scrutinizer-run --enable-security-analysis
2525
- make codestyle
26+
- composer global require maglnet/composer-require-checker && composer-require-checker check composer.json
2627
cache:
2728
directories:
2829
- ~/.composer

.travis.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,27 @@ php:
44
- '7.1'
55
- '7.2'
66
- '7.3'
7+
- '7.4'
78

89
env:
910
global:
10-
CI: 'true'
11-
TEST_OUTPUT_STYLE: 'pretty'
12-
PHPCS_REPORT_STYLE: 'full'
13-
COMPOSER_OPTIONS: '--optimize-autoloader'
14-
matrix:
15-
- SYMFONY_VERSION: '~3.0'
16-
- SYMFONY_VERSION: '~4.0'
17-
18-
sudo: false
19-
20-
matrix:
11+
- CI: 'true'
12+
- TEST_OUTPUT_STYLE: 'pretty'
13+
- PHPCS_REPORT_STYLE: 'full'
14+
- COMPOSER_OPTIONS: '--optimize-autoloader'
15+
jobs:
16+
- SYMFONY_VERSION: '~3.0'
17+
- SYMFONY_VERSION: '~4.0'
18+
19+
jobs:
2120
fast_finish: true
2221

2322
before_install:
2423
# remove xdebug to speed up build
2524
- phpenv config-rm xdebug.ini || true
2625

2726
install:
28-
- composer require symfony/http-foundation:$SYMFONY_VERSION symfony/http-kernel:$SYMFONY_VERSION symfony/config:$SYMFONY_VERSION symfony/dependency-injection:$SYMFONY_VERSION
27+
- composer require symfony/http-foundation:$SYMFONY_VERSION symfony/http-kernel:$SYMFONY_VERSION symfony/config:$SYMFONY_VERSION symfony/dependency-injection:$SYMFONY_VERSION symfony/event-dispatcher:$SYMFONY_VERSION symfony/routing:$SYMFONY_VERSION
2928
- make build
3029
script:
3130
- make test-technical
@@ -39,3 +38,4 @@ cache:
3938
branches:
4039
except:
4140
- /.*\-dev$/
41+
- /^dev-.*/

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ See [yoanm/symfony-jsonrpc-params-validator](https://github.com/yoanm/symfony-js
1515

1616
See [yoanm/symfony-jsonrpc-http-server-doc](https://github.com/yoanm/symfony-jsonrpc-http-server-doc) for documentation generation.
1717

18+
## Versions
19+
20+
- Symfony v3/4 - PHP >=7.1 : `^v2.0`
21+
⚠️⚠️ `v2.1.0` and `v2.1.1` was badly taggued, used `v3.0.0` instead ! ⚠️⚠️
22+
- Symfony v4/5 - PHP >=7.2 : `^v3.0`
23+
1824
## How to use
1925

2026
Once configured, your project is ready to handle HTTP `POST` request on `/json-rpc` endpoint.

composer.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
}
2727
},
2828
"suggest": {
29-
"yoanm/symfony-jsonrpc-server-psr11-resolver": "PSR-11 compliant method resolver for yoanm/symfony-jsonrpc-http-server",
3029
"yoanm/symfony-jsonrpc-params-validator": "Symfony bundle for easy JSON-RPC params validation",
3130
"yoanm/symfony-jsonrpc-http-server-doc": "JSON-RPC documentation Bundle"
3231
},
@@ -36,13 +35,15 @@
3635
"symfony/http-foundation": "^3.0 || ^4.0",
3736
"symfony/http-kernel": "^3.0 || ^4.0",
3837
"symfony/config": "^3.0 || ^4.0",
39-
"symfony/dependency-injection": "^3.0 || ^4.0"
38+
"symfony/dependency-injection": "^3.0 || ^4.0",
39+
"symfony/event-dispatcher": "^3.0 || ^4.0",
40+
"psr/container": "^1.0"
4041
},
4142
"require-dev": {
4243
"behat/behat": "~3.0",
4344
"squizlabs/php_codesniffer": "3.*",
44-
"phpunit/phpunit": "^7.0 || ^8.0",
45-
"matthiasnoback/symfony-dependency-injection-test": "^2.0 || ^3.0",
45+
"phpunit/phpunit": "^7.0",
46+
"matthiasnoback/symfony-dependency-injection-test": "^3.0 || ^4.0",
4647
"matthiasnoback/symfony-config-test": "^3.0 || ^4.0",
4748
"symfony/framework-bundle": "^3.0 || ^4.0",
4849
"symfony/http-kernel": "^3.0 || ^4.0",

0 commit comments

Comments
 (0)