Skip to content

Commit d09c926

Browse files
Update PersonServiceProvider.php
1 parent 188b5fa commit d09c926

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

app/Modules/Person/Providers/PersonServiceProvider.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
use Illuminate\Support\ServiceProvider;
66
use App\Modules\Person\Services\PersonService;
7+
use App\Services\DuplicateDetectionService;
8+
use App\Services\PersonMergeService;
79

810
class PersonServiceProvider extends ServiceProvider
911
{
@@ -17,6 +19,15 @@ public function register(): void
1719
return new PersonService();
1820
});
1921

22+
// Duplicate detection + merge services
23+
$this->app->singleton(DuplicateDetectionService::class, function ($app) {
24+
return new DuplicateDetectionService();
25+
});
26+
27+
$this->app->singleton(PersonMergeService::class, function ($app) {
28+
return new PersonMergeService();
29+
});
30+
2031
// Register person configuration
2132
$this->mergeConfigFrom(__DIR__ . '/../config/person.php', 'person');
2233
}
@@ -46,4 +57,4 @@ public function boot(): void
4657
__DIR__ . '/../config/person.php' => config_path('person.php'),
4758
], 'person-config');
4859
}
49-
}
60+
}

0 commit comments

Comments
 (0)