move config to investbrain keyspace
This commit is contained in:
@@ -6,6 +6,7 @@ APP_TIMEZONE=UTC
|
||||
APP_URL=http://localhost
|
||||
ASSET_URL="${APP_URL}"
|
||||
APP_PORT=8000
|
||||
SELF_HOSTED=true
|
||||
|
||||
APP_LOCALE=en
|
||||
APP_FALLBACK_LOCALE=en
|
||||
|
||||
@@ -60,7 +60,7 @@ class MarketData extends Model
|
||||
if (
|
||||
!$market_data->exists
|
||||
|| is_null($market_data->updated_at)
|
||||
|| $market_data->updated_at->diffInMinutes(now()) >= config('market_data.refresh')
|
||||
|| $market_data->updated_at->diffInMinutes(now()) >= config('investbrain.refresh')
|
||||
) {
|
||||
|
||||
// get quote
|
||||
|
||||
@@ -13,8 +13,8 @@ class AppServiceProvider extends ServiceProvider
|
||||
{
|
||||
|
||||
$market_data = config(
|
||||
"market_data." .
|
||||
config('market_data.default', 'yahoo')
|
||||
"investbrain." .
|
||||
config('investbrain.default', 'yahoo')
|
||||
);
|
||||
|
||||
$this->app->bind(
|
||||
|
||||
@@ -9,4 +9,6 @@ return [
|
||||
'yahoo' => App\Interfaces\MarketData\YahooMarketData::class,
|
||||
'alphavantage' => App\Interfaces\MarketData\AlphaVantageMarketData::class,
|
||||
'fake' => App\Interfaces\MarketData\FakeMarketData::class,
|
||||
|
||||
'self_hosted' => env('SELF_HOSTED', true)
|
||||
];
|
||||
Reference in New Issue
Block a user