<?php

namespace Modules\Category\Providers;

use Nwidart\Modules\Support\ModuleServiceProvider;

class CategoryServiceProvider extends ModuleServiceProvider
{
    protected string $name = 'Category';

    protected string $nameLower = 'category';

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

    public function register(): void
    {
        parent::register();
        $this->app->bind(
            \Modules\Category\Repositories\Interfaces\CategoryRepositoryInterface::class,
            \Modules\Category\Repositories\CategoryRepository::class
        );
    }
}
