Skip to content

Commit

Permalink
allow passing full base path
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigopedra committed Mar 8, 2021
1 parent 8384216 commit 8659e74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EventSourcingServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private function discoverEventHandlers()

(new DiscoverEventHandlers())
->within(config('event-sourcing.auto_discover_projectors_and_reactors'))
->useBasePath(base_path(config('event-sourcing.base_path')))
->useBasePath(config('event-sourcing.base_path', base_path()))
->ignoringFiles(Composer::getAutoloadedFiles(base_path('composer.json')))
->addToProjectionist($projectionist);
}
Expand Down

0 comments on commit 8659e74

Please sign in to comment.