<?php

namespace Modules\Payment\Providers;

use Nwidart\Modules\Support\ModuleServiceProvider;

class PaymentServiceProvider extends ModuleServiceProvider
{
    protected string $name = 'Payment';

    protected string $nameLower = 'payment';

    protected array $providers = [
        EventServiceProvider::class,
        RouteServiceProvider::class,
    ];

    public function register(): void
    {
        parent::register();
        $this->app->bind(
            \Modules\Payment\Repositories\Interfaces\OrderRepositoryInterface::class,
            \Modules\Payment\Repositories\OrderRepository::class
        );
        $this->app->bind(
            \Modules\Payment\Repositories\Interfaces\PaymentMethodRepositoryInterface::class,
            \Modules\Payment\Repositories\PaymentMethodRepository::class
        );
    }
}
