Skip to content

Commit

Permalink
Merge pull request #202 from rodrigopedra/patch-1
Browse files Browse the repository at this point in the history
Allow custom path as a base path
  • Loading branch information
brendt authored Mar 10, 2021
2 parents 05d0aa0 + ba4096f commit c261c9b
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())
->useBasePath(config('event-sourcing.auto_discover_base_path', base_path()))
->ignoringFiles(Composer::getAutoloadedFiles(base_path('composer.json')))
->addToProjectionist($projectionist);
}
Expand Down

0 comments on commit c261c9b

Please sign in to comment.