enable Link Mobility php client v2 as dependency variant
This commit is contained in:
parent
e159aaa3b0
commit
224057b807
@ -20,7 +20,7 @@
|
|||||||
"require": {
|
"require": {
|
||||||
"php": "^7.0 || ^8.0",
|
"php": "^7.0 || ^8.0",
|
||||||
"oxid-esales/oxideshop-ce": "6.7 - 6.10",
|
"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": {
|
"extra": {
|
||||||
"oxideshop": {
|
"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;
|
namespace D3\Linkmobility4OXID\Modules\Application\Model;
|
||||||
|
|
||||||
|
use D3\Linkmobility4OXID\Modules\Core\EmailCore;
|
||||||
use OxidEsales\Eshop\Core\Email;
|
use OxidEsales\Eshop\Core\Email;
|
||||||
|
|
||||||
class OrderModel extends OrderModel_parent
|
class OrderModel extends OrderModel_parent
|
||||||
@ -24,6 +25,7 @@ class OrderModel extends OrderModel_parent
|
|||||||
parent::cancelOrder();
|
parent::cancelOrder();
|
||||||
|
|
||||||
if ($this->getFieldData('oxstorno') === 1) {
|
if ($this->getFieldData('oxstorno') === 1) {
|
||||||
|
/** @var EmailCore $Email */
|
||||||
$Email = oxNew(Email::class);
|
$Email = oxNew(Email::class);
|
||||||
$Email->d3SendCancelMessage($this);
|
$Email->d3SendCancelMessage($this);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user