File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 34
34
"illuminate/contracts" : " ~5.0" ,
35
35
"illuminate/support" : " ~5.0" ,
36
36
"illuminate/view" : " ~5.0" ,
37
- "florianv/swap" : " ~2.4 "
37
+ "florianv/swap" : " ~2.5 "
38
38
},
39
39
"require-dev" : {
40
40
"graham-campbell/testbench" : " ~2.1"
Original file line number Diff line number Diff line change 16
16
use Illuminate \Support \ServiceProvider ;
17
17
use Swap \Cache \IlluminateCache ;
18
18
use Swap \Provider \CentralBankOfRepublicTurkeyProvider ;
19
+ use Swap \Provider \CentralBankOfCzechRepublicProvider ;
19
20
use Swap \Provider \ChainProvider ;
20
21
use Swap \Provider \EuropeanCentralBankProvider ;
21
22
use Swap \Provider \GoogleFinanceProvider ;
@@ -127,6 +128,9 @@ private function registerProvider(Application $app)
127
128
case 'central_bank_of_republic_turkey ' :
128
129
$ providers [] = new CentralBankOfRepublicTurkeyProvider ($ app ['swap.http_adapter ' ]);
129
130
break ;
131
+ case 'central_bank_of_czech_republic ' :
132
+ $ providers [] = new CentralBankOfCzechRepublicProvider ($ app ['swap.http_adapter ' ]);
133
+ break ;
130
134
default :
131
135
throw new \RuntimeException (sprintf ('Unknown provider with name "%s". ' , $ providerName ));
132
136
}
Original file line number Diff line number Diff line change @@ -104,7 +104,8 @@ public function testAllProviders()
104
104
'xignite ' => [
105
105
'token ' => 'bar '
106
106
],
107
- 'central_bank_of_republic_turkey ' => true
107
+ 'central_bank_of_republic_turkey ' => true ,
108
+ 'central_bank_of_czech_republic ' => true
108
109
]);
109
110
110
111
$ this ->assertInstanceOf ('Swap\Provider\ChainProvider ' , $ this ->app ['swap.provider ' ]);
You can’t perform that action at this time.
0 commit comments