ClearBowl/api/app/Providers/RepositoriesServiceProvider.php

34 lines
717 B
PHP
Raw Normal View History

<?php
namespace App\Providers;
2019-12-04 12:49:41 +01:00
use App\Repositories\ProductsRepository;
use App\Repositories\ProductsRepositoryInterface;
use App\Repositories\UsersRepository;
use App\Repositories\UsersRepositoryInterface;
use Illuminate\Support\ServiceProvider;
class RepositoriesServiceProvider extends ServiceProvider
{
/**
* Register services.
*
* @return void
*/
public function register()
{
//
}
/**
* Bootstrap services.
*
* @return void
*/
public function boot()
{
$this->app->bind(UsersRepositoryInterface::class, UsersRepository::class);
2019-12-04 12:49:41 +01:00
$this->app->bind(ProductsRepositoryInterface::class, ProductsRepository::class);
}
}