Skip to content

Commit

Permalink
Merge pull request #7 from aligent/set-async-data
Browse files Browse the repository at this point in the history
Save async event data
  • Loading branch information
gowrizrh authored May 2, 2022
2 parents 885258b + f8ac71c commit cff3b2f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions Service/EventBridgeNotifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public function notify(AsyncEventInterface $asyncEvent, array $data): NotifierRe
{
$notifierResult = new NotifierResult();
$notifierResult->setSubscriptionId($asyncEvent->getSubscriptionId());
$notifierResult->setAsyncEventData($data);

try {
$eventEntry['EventBusName'] = $this->config->getEventBridgeBus();
Expand Down
10 changes: 10 additions & 0 deletions etc/di.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type name="Aligent\AsyncEvents\Service\AsyncEvent\NotifierFactory">
<arguments>
<argument name="notifierClasses" xsi:type="array">
<item name="event_bridge" xsi:type="object">Aligent\EventBridge\Service\EventBridgeNotifier</item>
</argument>
</arguments>
</type>
</config>

0 comments on commit cff3b2f

Please sign in to comment.