Skip to content
This repository was archived by the owner on Feb 5, 2021. It is now read-only.

Commit 52a19fa

Browse files
authored
Merge pull request #22 from pamil/symfony4
Add support for Symfony 4
2 parents a7e69c9 + 571e5b3 commit 52a19fa

File tree

3 files changed

+10
-16
lines changed

3 files changed

+10
-16
lines changed

.travis.yml

+6-13
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,23 @@ php:
55
- 7.2
66

77
env:
8-
matrix:
9-
- PREFER_LOWEST="--prefer-lowest"
10-
- PREFER_LOWEST=""
8+
- SYMFONY_VERSION=3.3.*
9+
- SYMFONY_VERSION=3.4.*
10+
- SYMFONY_VERSION=4.0.*
1111

1212
cache:
1313
directories:
14-
- vendor
14+
- ~/.composer/cache/files
1515

1616
before_install:
1717
- phpenv config-rm xdebug.ini || true
1818

1919
install:
20-
- composer update --prefer-dist $PREFER_LOWEST
20+
- composer require symfony/dependency-injection:${SYMFONY_VERSION} --no-update --no-scripts --prefer-dist
21+
- composer update --prefer-dist
2122

2223
script:
2324
- composer validate --strict
2425

2526
- vendor/bin/phpspec run --format dot -vvv --no-interaction
2627
- vendor/bin/behat --strict -vvv --no-interaction
27-
28-
jobs:
29-
include:
30-
- stage: Code Standard Checker
31-
php: 7.1
32-
33-
script:
34-
- vendor/bin/ecs check src spec

composer.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,12 @@
1313
"php": "^7.1",
1414

1515
"behat/behat": "^3.1",
16-
"symfony/dependency-injection": "^3.0|^4.0"
16+
"symfony/dependency-injection": "^3.3|^4.0"
1717
},
1818
"require-dev": {
1919
"friends-of-behat/cross-container-extension": "^1.0",
2020
"friends-of-behat/test-context": "^1.0",
21-
"phpspec/phpspec": "^4.0",
22-
"sylius-labs/coding-standard": "^1.0"
21+
"phpspec/phpspec": "^4.0"
2322
},
2423
"suggest": {
2524
"friends-of-behat/cross-container-extension": "^1.0",

src/ServiceContainer/Scenario/ContextRegistryPass.php

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ public function process(ContainerBuilder $container): void
4545
$taggedServices = $container->findTaggedServiceIds(self::CONTEXT_SERVICE_TAG);
4646

4747
foreach ($taggedServices as $id => $tags) {
48+
$container->getDefinition($id)->setPublic(true);
49+
4850
$this->contextRegistryDefinition->addMethodCall(
4951
'add',
5052
[$id, $container->findDefinition($id)->getClass()]

0 commit comments

Comments
 (0)