enable Link Mobility php client v2 as dependency variant
This commit is contained in:
parent
e159aaa3b0
commit
224057b807
|
@ -20,7 +20,7 @@
|
|||
"require": {
|
||||
"php": "^7.0 || ^8.0",
|
||||
"oxid-esales/oxideshop-ce": "6.7 - 6.10",
|
||||
"d3/linkmobility-php-client": "^1.2.0"
|
||||
"d3/linkmobility-php-client": "^1.2.0 || ^2.0.0"
|
||||
},
|
||||
"extra": {
|
||||
"oxideshop": {
|
||||
|
|
|
@ -57,7 +57,9 @@ class OrderRecipients
|
|||
}
|
||||
}
|
||||
|
||||
throw oxNew(noRecipientFoundException::class);
|
||||
/** @var noRecipientFoundException $exc */
|
||||
$exc = oxNew(noRecipientFoundException::class);
|
||||
throw $exc;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -57,7 +57,9 @@ class UserRecipients
|
|||
}
|
||||
}
|
||||
|
||||
throw oxNew(noRecipientFoundException::class);
|
||||
/** @var noRecipientFoundException $exc */
|
||||
$exc = oxNew(noRecipientFoundException::class);
|
||||
throw $exc;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -15,6 +15,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace D3\Linkmobility4OXID\Modules\Application\Model;
|
||||
|
||||
use D3\Linkmobility4OXID\Modules\Core\EmailCore;
|
||||
use OxidEsales\Eshop\Core\Email;
|
||||
|
||||
class OrderModel extends OrderModel_parent
|
||||
|
@ -24,6 +25,7 @@ class OrderModel extends OrderModel_parent
|
|||
parent::cancelOrder();
|
||||
|
||||
if ($this->getFieldData('oxstorno') === 1) {
|
||||
/** @var EmailCore $Email */
|
||||
$Email = oxNew(Email::class);
|
||||
$Email->d3SendCancelMessage($this);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue