<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;

class RepositoryServiceProvider extends ServiceProvider
{
    /**
     * Register services.
     *
     * @return void
     */
    public function register()
    {
        $binds = [
            'Config',
            'Disbursement',
            'DisbursementAttachment',
            'EmailVerification',
            'Module',
            'Permission',
            'Profession',
            'Professional',
            'ProfessionalOffice',
            'ProfessionalSchedule',
            'ProfessionalId',
            'PasswordReset',
            'Payment',
            'Role',
            'RolePermission',
            'User',
            'UserProfile',
            'Tagline',
            'Transaction',
            'Booking'
        ];

        foreach ($binds as $bind) {
            $this->app->bind(
                "App\Repositories\Interfaces\\{$bind}RepositoryInterface",
                "App\Repositories\Eloquent\\{$bind}Repository"
            );
        }
    }

    /**
     * Bootstrap services.
     *
     * @return void
     */
    public function boot()
    {
        //
    }
}
