Files
investbrain/app/Providers/AppServiceProvider.php
T
2024-09-09 17:20:26 -05:00

34 lines
612 B
PHP

<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
$market_data = config(
"investbrain." .
config('investbrain.default', 'yahoo')
);
$this->app->bind(
\App\Interfaces\MarketData\MarketDataInterface::class,
$market_data
);
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
//
}
}