Files
investbrain/app/Providers/AppServiceProvider.php
T

34 lines
612 B
PHP
Raw Normal View History

2024-08-01 13:53:10 -05:00
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
2024-08-24 22:19:40 -05:00
$market_data = config(
"market_data." .
config('market_data.default', 'yahoo')
);
$this->app->bind(
\App\Interfaces\MarketData\MarketDataInterface::class,
$market_data
);
2024-08-01 13:53:10 -05:00
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
//
}
}