Closed siwymilek closed 3 years ago
I have the same problem.
@siwymilek @RSalo I come across the same problem. It takes me 1 day to fix.
Change your config to something like below will work.
Assume your Repository interface is App\Domain\Model\User\UserRepository
, change it to what ever you type hinted.
prooph_event_store:
stores:
user_store:
event_store: 'prooph_event_store.pdo_mysql_event_store'
repositories:
user_repository:
repository_class: App\Infrastructure\User\Repository\EventStoreUserRepository
aggregate_type: App\Domain\User\Model\User
aggregate_translator: 'prooph_event_sourcing.aggregate_translator'
services:
# change below to your type hinted type
App\Domain\Model\User\UserRepository: '@user_repository'
Starting from 0.9.x, this bundle no longer handle repositories
I can't autowire repositories – is this an issue or deliberate action? Here is my event store configuration:
And here is the error: