APIs and views for exchange rates.

This commit is contained in:
James Cole
2024-12-22 06:24:45 +01:00
parent 117a376fc3
commit 2e993857e8
48 changed files with 741 additions and 82 deletions

View File

@@ -27,6 +27,8 @@ use FireflyIII\Repositories\Currency\CurrencyRepository;
use FireflyIII\Repositories\Currency\CurrencyRepositoryInterface;
use FireflyIII\Repositories\UserGroups\Currency\CurrencyRepository as GroupCurrencyRepository;
use FireflyIII\Repositories\UserGroups\Currency\CurrencyRepositoryInterface as GroupCurrencyRepositoryInterface;
use FireflyIII\Repositories\UserGroups\ExchangeRate\ExchangeRateRepository;
use FireflyIII\Repositories\UserGroups\ExchangeRate\ExchangeRateRepositoryInterface;
use Illuminate\Foundation\Application;
use Illuminate\Support\ServiceProvider;
@@ -71,5 +73,13 @@ class CurrencyServiceProvider extends ServiceProvider
return $repository;
}
);
$this->app->bind(
ExchangeRateRepositoryInterface::class,
static function (Application $app) {
/** @var ExchangeRateRepository $repository */
return app(ExchangeRateRepository::class);
}
);
}
}