repo_pattern/app/Providers/RepositoryServiceProvider.php

28 lines
486 B
PHP
Raw Permalink Normal View History

2024-02-13 07:26:11 +00:00
<?php
namespace App\Providers;
use App\Interfaces\OrderRepositoryInterface;
use App\Repositories\OrderRepository;
use Illuminate\Support\ServiceProvider;
class RepositoryServiceProvider extends ServiceProvider
{
/**
* Register services.
*/
public function register()
{
$this->app->bind(OrderRepositoryInterface::class, OrderRepository::class);
}
/**
* Bootstrap services.
*/
public function boot(): void
{
//
}
}