@@ -25,11 +25,18 @@ |
||
25 | 25 | $this->eventBus = $eventBus; |
26 | 26 | } |
27 | 27 | |
28 | + /** |
|
29 | + * @param \Closure $callback |
|
30 | + */ |
|
28 | 31 | public function recordOn($callback): BasicMutationResponse |
29 | 32 | { |
30 | 33 | $responseBuilder = BasicMutationResponseBuilder::create(); |
31 | 34 | $this->eventBus->attach( |
32 | 35 | EventBus::EVENT_DISPATCH, |
36 | + |
|
37 | + /** |
|
38 | + * @param \Closure $actionEvent |
|
39 | + */ |
|
33 | 40 | function (ActionEvent $actionEvent) use ($responseBuilder): void { |
34 | 41 | $event = $actionEvent->getParam(MessageBus::EVENT_PARAM_MESSAGE); |
35 | 42 | if (!$event instanceof DomainEvent) { |