37 lines
893 B
PHP
37 lines
893 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Repositories\ProductsRepository;
|
|
use App\Repositories\ProductsRepositoryInterface;
|
|
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);
|
|
$this->app->bind(ProductsRepositoryInterface::class, ProductsRepository::class);
|
|
$this->app->bind(RecipesRepositoryInterface::class, RecipesRepository::class);
|
|
}
|
|
}
|