Implemented multiple Currency Exchange Rates sites engine

Signed-off-by: Luca Bognolo <git@bogny.eu>
This commit is contained in:
Luca Bognolo
2019-01-01 16:32:22 +01:00
parent 98d6a7f32e
commit 729483102e
8 changed files with 177 additions and 11 deletions

View File

@@ -185,7 +185,11 @@ class FireflyServiceProvider extends ServiceProvider
$this->app->bind(FiscalHelperInterface::class, FiscalHelper::class);
$this->app->bind(BalanceReportHelperInterface::class, BalanceReportHelper::class);
$this->app->bind(BudgetReportHelperInterface::class, BudgetReportHelper::class);
$this->app->bind(ExchangeRateInterface::class, FixerIOv2::class);
$class = (string)config(sprintf('firefly.cer_providers.%s', (string)config('firefly.cer_provider')));
if('' === $class) {
throw new FireflyException('Invalid currency exchange rate provider. Cannot continue.');
}
$this->app->bind(ExchangeRateInterface::class, $class);
// password verifier thing
$this->app->bind(Verifier::class, PwndVerifierV2::class);