Skip to content

Commit 5a4b9fa

Browse files
authored
Merge pull request #4 from gregurco/symfony_4
Integrate support of symfony 4
2 parents 3b58647 + 0607201 commit 5a4b9fa

File tree

3 files changed

+29
-6
lines changed

3 files changed

+29
-6
lines changed

.travis.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,46 @@ sudo: false
55
php:
66
- 7.0
77
- 7.1
8+
- 7.2
9+
- nightly
810

911
env:
12+
- SYMFONY_VERSION=2.7.* # LTS
13+
- SYMFONY_VERSION=2.8.* # LTS
1014
- SYMFONY_VERSION=3.2.*
1115
- SYMFONY_VERSION=3.3.*
16+
- DEPENDENCIES='dev' SYMFONY_VERSION='3.4.*@dev' # LTS, remove "dev" when released
17+
- DEPENDENCIES='dev' SYMFONY_VERSION='4.0.*@dev'
1218

1319
cache:
1420
directories:
1521
- $HOME/.composer/cache/files
1622

1723
before_install:
1824
- composer self-update
25+
- if [ "$DEPENDENCIES" == "dev" ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;
26+
- if [ "$SYMFONY_VERSION" != "" ]; then composer --no-update require symfony/symfony:${SYMFONY_VERSION}; fi;
1927

2028
install:
21-
- composer install
29+
- composer update
2230

2331
script:
2432
- mkdir -p build/logs
25-
- php vendor/bin/phpunit -c phpunit.xml.dist --coverage-text
33+
- php vendor/bin/phpunit --coverage-text
34+
35+
matrix:
36+
exclude:
37+
- php: 7
38+
env: DEPENDENCIES='dev' SYMFONY_VERSION='4.0.*@dev' # requires PHP ^7.1.3
39+
- php: 7
40+
env: SYMFONY_VERSION=dev-master # requires PHP ^7.1.3
41+
allow_failures:
42+
- php: 7.1
43+
env: DEPENDENCIES='dev' SYMFONY_VERSION='4.0.*@dev'
44+
- php: 7.2
45+
env: DEPENDENCIES='dev' SYMFONY_VERSION='4.0.*@dev'
46+
- php: nightly
47+
- env: SYMFONY_VERSION=dev-master
2648

2749
after_success:
2850
- travis_retry php vendor/bin/coveralls

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
"php": "^7.0",
2323
"guzzlehttp/guzzle": "^6.0",
2424
"eightpoints/guzzle-bundle": "~7.0",
25-
"symfony/http-kernel": "~2.3|~3.0",
26-
"symfony/config": "~2.3|~3.0",
27-
"symfony/dependency-injection": "~2.3|~3.0",
28-
"symfony/expression-language": "~2.3|~3.0"
25+
"symfony/http-kernel": "~2.7|~3.0|~4.0",
26+
"symfony/config": "~2.7|~3.0|~4.0",
27+
"symfony/dependency-injection": "~2.7|~3.0|~4.0",
28+
"symfony/expression-language": "~2.7|~3.0|~4.0"
2929
},
3030

3131
"require-dev": {

src/GuzzleBundleWssePlugin.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public function loadForClient(array $config, ContainerBuilder $container, string
3434
if ($config['username'] && $config['password']) {
3535
$wsse = new Definition('%guzzle_bundle_wsse_plugin.middleware.wsse.class%');
3636
$wsse->setArguments([$config['username'], $config['password'], $config['created_at']]);
37+
$wsse->setPublic(true);
3738

3839
$wsseServiceName = sprintf('guzzle_bundle_wsse_plugin.middleware.wsse.%s', $clientName);
3940

0 commit comments

Comments
 (0)