This repository was archived by the owner on Feb 5, 2021. It is now read-only.
File tree 3 files changed +10
-16
lines changed
src/ServiceContainer/Scenario
3 files changed +10
-16
lines changed Original file line number Diff line number Diff line change 5
5
- 7.2
6
6
7
7
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.*
11
11
12
12
cache :
13
13
directories :
14
- - vendor
14
+ - ~/.composer/cache/files
15
15
16
16
before_install :
17
17
- phpenv config-rm xdebug.ini || true
18
18
19
19
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
21
22
22
23
script :
23
24
- composer validate --strict
24
25
25
26
- vendor/bin/phpspec run --format dot -vvv --no-interaction
26
27
- 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
Original file line number Diff line number Diff line change 13
13
"php" : " ^7.1" ,
14
14
15
15
"behat/behat" : " ^3.1" ,
16
- "symfony/dependency-injection" : " ^3.0 |^4.0"
16
+ "symfony/dependency-injection" : " ^3.3 |^4.0"
17
17
},
18
18
"require-dev" : {
19
19
"friends-of-behat/cross-container-extension" : " ^1.0" ,
20
20
"friends-of-behat/test-context" : " ^1.0" ,
21
- "phpspec/phpspec" : " ^4.0" ,
22
- "sylius-labs/coding-standard" : " ^1.0"
21
+ "phpspec/phpspec" : " ^4.0"
23
22
},
24
23
"suggest" : {
25
24
"friends-of-behat/cross-container-extension" : " ^1.0" ,
Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ public function process(ContainerBuilder $container): void
45
45
$ taggedServices = $ container ->findTaggedServiceIds (self ::CONTEXT_SERVICE_TAG );
46
46
47
47
foreach ($ taggedServices as $ id => $ tags ) {
48
+ $ container ->getDefinition ($ id )->setPublic (true );
49
+
48
50
$ this ->contextRegistryDefinition ->addMethodCall (
49
51
'add ' ,
50
52
[$ id , $ container ->findDefinition ($ id )->getClass ()]
You can’t perform that action at this time.
0 commit comments