34 lines
717 B
PHP
34 lines
717 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
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);
|
|
$this->app->bind(ProductsRepositoryInterface::class, ProductsRepository::class);
|
|
}
|
|
}
|