mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-30 06:49:32 +00:00
Added a button to update exchange rates via web gui.
This commit is contained in:
parent
ff7c1cddc7
commit
af42c3cca0
11 changed files with 1137 additions and 909 deletions
|
|
@ -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],
|
||||
];
|
||||
|
|
|
|||
6
config/packages/swap.yaml
Normal file
6
config/packages/swap.yaml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
florianv_swap:
|
||||
providers:
|
||||
exchange_rates_api: ~
|
||||
fixer:
|
||||
access_key: "%env(FIXER_API_KEY)%"
|
||||
european_central_bank: ~ # European Central Bank
|
||||
|
|
@ -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
|
||||
####################################################################################################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue