Added a button to update exchange rates via web gui.

This commit is contained in:
Jan Böhmer 2020-06-07 22:38:10 +02:00
parent ff7c1cddc7
commit af42c3cca0
11 changed files with 1137 additions and 909 deletions

View file

@ -24,4 +24,5 @@ return [
R\U2FTwoFactorBundle\RU2FTwoFactorBundle::class => ['all' => true],
Translation\Bundle\TranslationBundle::class => ['all' => true],
Symplify\ParameterNameGuard\ParameterNameGuardBundle::class => ['dev' => true, 'test' => true],
Florianv\SwapBundle\FlorianvSwapBundle::class => ['all' => true],
];

View file

@ -0,0 +1,6 @@
florianv_swap:
providers:
exchange_rates_api: ~
fixer:
access_key: "%env(FIXER_API_KEY)%"
european_central_bank: ~ # European Central Bank

View file

@ -142,6 +142,11 @@ services:
arguments:
$base_currency: '%partdb.default_currency%'
App\Services\ExchangeRateUpdater:
arguments:
$base_currency: '%partdb.default_currency%'
$swap: '@florianv_swap.swap'
###################################################################################################################
# User system
####################################################################################################################