automation = $automation; } /** * If it's configured to capture on shipment - do this. * * @param \Magento\Framework\Event\Observer $observer * * @return $this */ public function execute(\Magento\Framework\Event\Observer $observer) { $customer = $observer->getEvent()->getCustomer(); //New Automation enrolment to queue $this->automation->newCustomerAutomation($customer); return $this; } }