<?php

namespace App\Providers;

use App\Services\Payments\GatewayManager;
use Illuminate\Support\ServiceProvider;

class PaymentsServiceProvider extends ServiceProvider
{
    public function register(): void
    {
        $this->app->singleton(GatewayManager::class, fn ($app) =>
            new GatewayManager(config('payments'))
        );
    }
}
