public function register()
{
$this->app->bind('App\\Repositories\\Project\\ProjectInterface', function ($app) {
return new EloquentProject(new Project());
});
$this->app->bind('App\\Repositories\\Recipe\\RecipeInterface', function ($app) {
return new EloquentRecipe(new Recipe());
});
$this->app->bind('App\\Repositories\\Server\\ServerInterface', function ($app) {
return new EloquentServer(new Server());
});
$this->app->bind('App\\Repositories\\User\\UserInterface', function ($app) {
return new EloquentUser(new User());
});
$this->app->bind('App\\Repositories\\Role\\RoleInterface', function ($app) {
return new EloquentRole(new Role());
});
$this->app->bind('App\\Repositories\\Setting\\SettingInterface', function ($app) {
return new EloquentSetting(new Setting());
});
$this->app->bind('App\\Repositories\\Setting\\DbSettingInterface', function ($app) {
return new ConfigDbSetting($app->make('App\\Services\\Config\\ConfigReaderInterface'), $app->make('App\\Services\\Config\\ConfigWriterInterface'));
});
$this->app->bind('App\\Repositories\\Setting\\AppSettingInterface', function ($app) {
return new ConfigAppSetting($app->make('App\\Services\\Config\\ConfigReaderInterface'), $app->make('App\\Services\\Config\\ConfigWriterInterface'));
});
}