Skip to content

Commit

Permalink
Refactor service provider docs
Browse files Browse the repository at this point in the history
romanzipp committed Aug 10, 2024
1 parent acd3404 commit 5c34a5f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -103,10 +103,8 @@ use romanzipp\ProjectableAggregates\ProjectableAggregateRegistry;

class AppServiceProvider extends ServiceProvider
{
public function boot()
public function boot(ProjectableAggregateRegistry $registry)
{
$registry = app(ProjectableAggregateRegistry::class);

$registry->registerConsumers([
Car::class,
]);

0 comments on commit 5c34a5f

Please sign in to comment.