-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update DnaServiceProvider for new src/ direc
- Loading branch information
1 parent
5de11f3
commit fcf41d7
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
namespace Src\Providers; | ||
|
||
use Illuminate\Support\ServiceProvider; | ||
use Src\Jobs\DispatchMatchkitsJob; | ||
use LiburuGenealogy\PhpDna\Matchkits; | ||
|
||
class DnaServiceProvider extends ServiceProvider | ||
{ | ||
public function register() | ||
{ | ||
$this->app->bind('dispatchMatchkits', function($app) { | ||
return new DispatchMatchkitsJob(); | ||
}); | ||
} | ||
|
||
public function boot() | ||
{ | ||
// Optional: Add event listeners or other bootstrapping code necessary for the php-dna library integration | ||
} | ||
} |