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 committed Mar 10, 2021
2 parents 05d0aa0 + ba4096f commit 4a4b4e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to `laravel-event-sourcing` will be documented in this file:

## 4.9.0 - 2021-03-10

- Make base path configurable (#202)

## 4.8.0 - 2021-01-28

- Add support for asserting events with a closure
Expand Down
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 4a4b4e1

Please sign in to comment.