File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 46
46
$ app ['toggle.manager.prefix ' ] .= '_test ' ;
47
47
}
48
48
49
- $ app ->register (new Predis \Silex \PredisServiceProvider (), [
49
+ $ app ->register (new Predis \Silex \ClientServiceProvider (), [
50
50
'predis.parameters ' => $ app ['redis_dsn ' ],
51
51
]);
52
52
53
- $ app ['toggle.manager.collection ' ] = $ app ->share (function ($ app ) {
53
+ $ app ['toggle.manager.collection ' ] = $ app ->factory (function ($ app ) {
54
54
return new PredisCollection ($ app ['toggle.manager.prefix ' ], $ app ['predis ' ]);
55
55
});
56
56
57
- $ app ['toggle.manager ' ] = $ app ->share (function ($ app ) {
57
+ $ app ['toggle.manager ' ] = $ app ->factory (function ($ app ) {
58
58
return new ToggleManager ($ app ['toggle.manager.collection ' ]);
59
59
});
60
60
61
- $ app ['toggle.operator_condition_serializer ' ] = $ app ->share (function ($ app ) {
61
+ $ app ['toggle.operator_condition_serializer ' ] = $ app ->factory (function ($ app ) {
62
62
return new OperatorConditionSerializer (new OperatorSerializer ());
63
63
});
64
64
65
- $ app ['toggle.serializer ' ] = $ app ->share (function ($ app ) {
65
+ $ app ['toggle.serializer ' ] = $ app ->factory (function ($ app ) {
66
66
return new ToggleSerializer ($ app ['toggle.operator_condition_serializer ' ]);
67
67
});
68
68
Original file line number Diff line number Diff line change 24
24
"require" : {
25
25
"php" : " >=7.2" ,
26
26
"ext-json" : " *" ,
27
- "silex/silex" : " ^1 .0" ,
27
+ "silex/silex" : " ^2 .0" ,
28
28
"qandidate/toggle" : " ^2.0" ,
29
- "predis/service-provider" : " ^0.4@dev " ,
29
+ "predis/service-provider" : " ^2.0 " ,
30
30
"asm89/stack-cors" : " ^1.0" ,
31
31
"vlucas/phpdotenv" : " ^2.0"
32
32
},
33
33
"require-dev" : {
34
34
"symfony/browser-kit" : " ^3.4" ,
35
- "phpunit/phpunit" : " ~4.8 " ,
35
+ "phpunit/phpunit" : " ^7.0 " ,
36
36
"broadway/coding-standard" : " ^1.0" ,
37
37
"phpstan/phpstan" : " @stable"
38
38
},
You can’t perform that action at this time.
0 commit comments