File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
app/Modules/Person/Providers Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 44
55use Illuminate \Support \ServiceProvider ;
66use App \Modules \Person \Services \PersonService ;
7+ use App \Services \DuplicateDetectionService ;
8+ use App \Services \PersonMergeService ;
79
810class 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+ }
You can’t perform that action at this time.
0 commit comments