我prooph
service buses
用event source
和配置了所有内容event store
。
但这是让我感到困惑的一件事。我必须调用:
$eventPublisher = $this->container->get('event_publisher');
在我的CommandBusFactory中将 事件发射器和事件总线粘合在一起,以便通过总线将域事件(从聚合根)分派到投影仪。没有这个,我的预测就不会被调用。
我的服务:链接
有 Symfony DI(扩展和 CompilerPass)经验的人可以帮助我吗?