ClearBowl/api/app/Providers/RepositoriesServiceProvider.php

37 lines
893 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;
2019-12-15 15:45:22 +01:00
use App\Repositories\RecipesRepository;
use App\Repositories\RecipesRepositoryInterface;
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);
2019-12-15 15:45:22 +01:00
$this->app->bind(RecipesRepositoryInterface::class, RecipesRepository::class);
}
}