diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e0cd204..9db46ecb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/EventSourcingServiceProvider.php b/src/EventSourcingServiceProvider.php index 112c3da1..0137d290 100644 --- a/src/EventSourcingServiceProvider.php +++ b/src/EventSourcingServiceProvider.php @@ -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); }