Conditions | 3 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
44 | public function execute(Observer $observer) |
||
45 | { |
||
46 | if (!$this->configHelper->isEnabled() || !$this->configHelper->isContactExportEnabled()) { |
||
47 | return; |
||
48 | } |
||
49 | |||
50 | /** @var MagentoCustomer $magentoCustomer */ |
||
51 | $magentoCustomer = $observer->getEvent()->getData('customer'); |
||
52 | |||
53 | $this->publisher->publish( |
||
54 | Topics::CUSTOMER_CONTACT_EXPORT, |
||
55 | json_encode(['magento_customer_id' => $magentoCustomer->getId()]) |
||
|
|||
56 | ); |
||
59 |