for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Containers\User\Providers;
use App\Containers\User\Contracts\UserRepositoryInterface;
use App\Containers\User\Data\Repositories\UserRepository;
use App\Port\Provider\Abstracts\ServiceProviderAbstract;
/**
* Class MainServiceProvider.
*
* The Main Service Provider of this container, it will be automatically registered in the framework.
* @author Mahmoud Zalt <[email protected]>
*/
class MainServiceProvider extends ServiceProviderAbstract
{
* Indicates if loading of the provider is deferred.
* @var bool
protected $defer = false;
* Container internal Service Provides.
* @var array
private $containerServiceProviders = [
AuthServiceProvider::class,
EventsServiceProvider::class,
];
* Perform post-registration booting of services.
public function boot()
$this->registerServiceProviders($this->containerServiceProviders);
}
* Register bindings in the container.
public function register()
$this->app->bind(UserRepositoryInterface::class, UserRepository::class);