2019-11-30 18:19:13 +01:00
|
|
|
<?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;
|
2019-11-30 18:19:13 +01:00
|
|
|
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);
|
2019-11-30 18:19:13 +01:00
|
|
|
}
|
|
|
|
}
|