File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 4646 $ app ['toggle.manager.prefix ' ] .= '_test ' ;
4747}
4848
49- $ app ->register (new Predis \Silex \PredisServiceProvider (), [
49+ $ app ->register (new Predis \Silex \ClientServiceProvider (), [
5050 'predis.parameters ' => $ app ['redis_dsn ' ],
5151]);
5252
53- $ app ['toggle.manager.collection ' ] = $ app ->share (function ($ app ) {
53+ $ app ['toggle.manager.collection ' ] = $ app ->factory (function ($ app ) {
5454 return new PredisCollection ($ app ['toggle.manager.prefix ' ], $ app ['predis ' ]);
5555});
5656
57- $ app ['toggle.manager ' ] = $ app ->share (function ($ app ) {
57+ $ app ['toggle.manager ' ] = $ app ->factory (function ($ app ) {
5858 return new ToggleManager ($ app ['toggle.manager.collection ' ]);
5959});
6060
61- $ app ['toggle.operator_condition_serializer ' ] = $ app ->share (function ($ app ) {
61+ $ app ['toggle.operator_condition_serializer ' ] = $ app ->factory (function ($ app ) {
6262 return new OperatorConditionSerializer (new OperatorSerializer ());
6363});
6464
65- $ app ['toggle.serializer ' ] = $ app ->share (function ($ app ) {
65+ $ app ['toggle.serializer ' ] = $ app ->factory (function ($ app ) {
6666 return new ToggleSerializer ($ app ['toggle.operator_condition_serializer ' ]);
6767});
6868
Original file line number Diff line number Diff line change 2424 "require" : {
2525 "php" : " >=7.2" ,
2626 "ext-json" : " *" ,
27- "silex/silex" : " ^1 .0" ,
27+ "silex/silex" : " ^2 .0" ,
2828 "qandidate/toggle" : " ^2.0" ,
29- "predis/service-provider" : " ^0.4@dev " ,
29+ "predis/service-provider" : " ^2.0 " ,
3030 "asm89/stack-cors" : " ^1.0" ,
3131 "vlucas/phpdotenv" : " ^2.0"
3232 },
3333 "require-dev" : {
3434 "symfony/browser-kit" : " ^3.4" ,
35- "phpunit/phpunit" : " ~4.8 " ,
35+ "phpunit/phpunit" : " ^7.0 " ,
3636 "broadway/coding-standard" : " ^1.0" ,
3737 "phpstan/phpstan" : " @stable"
3838 },
You can’t perform that action at this time.
0 commit comments