Remove ProductsSubject
[MAILPOET-4934]
This commit is contained in:
@@ -6,7 +6,6 @@ use MailPoet\Automation\Engine\Registry;
|
||||
use MailPoet\Automation\Integrations\WooCommerce\Subjects\CustomerSubject;
|
||||
use MailPoet\Automation\Integrations\WooCommerce\Subjects\OrderStatusChangeSubject;
|
||||
use MailPoet\Automation\Integrations\WooCommerce\Subjects\OrderSubject;
|
||||
use MailPoet\Automation\Integrations\WooCommerce\Subjects\ProductsSubject;
|
||||
use MailPoet\Automation\Integrations\WooCommerce\Triggers\OrderStatusChangedTrigger;
|
||||
|
||||
class WooCommerceIntegration {
|
||||
@@ -23,9 +22,6 @@ class WooCommerceIntegration {
|
||||
/** @var CustomerSubject */
|
||||
private $customerSubject;
|
||||
|
||||
/** @var ProductsSubject */
|
||||
private $productsSubject;
|
||||
|
||||
/** @var ContextFactory */
|
||||
private $contextFactory;
|
||||
|
||||
@@ -34,14 +30,12 @@ class WooCommerceIntegration {
|
||||
OrderStatusChangeSubject $orderStatusChangeSubject,
|
||||
OrderSubject $orderSubject,
|
||||
CustomerSubject $customerSubject,
|
||||
ProductsSubject $productsSubject,
|
||||
ContextFactory $contextFactory
|
||||
) {
|
||||
$this->orderStatusChangedTrigger = $orderStatusChangedTrigger;
|
||||
$this->orderStatusChangeSubject = $orderStatusChangeSubject;
|
||||
$this->orderSubject = $orderSubject;
|
||||
$this->customerSubject = $customerSubject;
|
||||
$this->productsSubject = $productsSubject;
|
||||
$this->contextFactory = $contextFactory;
|
||||
}
|
||||
|
||||
@@ -54,7 +48,6 @@ class WooCommerceIntegration {
|
||||
$registry->addSubject($this->orderSubject);
|
||||
$registry->addSubject($this->orderStatusChangeSubject);
|
||||
$registry->addSubject($this->customerSubject);
|
||||
$registry->addSubject($this->productsSubject);
|
||||
$registry->addTrigger($this->orderStatusChangedTrigger);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user