enable Link Mobility php client v2 as dependency variant

This commit is contained in:
Daniel Seifert 2022-07-20 11:57:58 +02:00
parent e159aaa3b0
commit 224057b807
Signed by: DanielS
GPG Key ID: 8A7C4C6ED1915C6F
4 changed files with 9 additions and 3 deletions

View File

@ -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": {

View File

@ -57,7 +57,9 @@ class OrderRecipients
}
}
throw oxNew(noRecipientFoundException::class);
/** @var noRecipientFoundException $exc */
$exc = oxNew(noRecipientFoundException::class);
throw $exc;
}
/**

View File

@ -57,7 +57,9 @@ class UserRecipients
}
}
throw oxNew(noRecipientFoundException::class);
/** @var noRecipientFoundException $exc */
$exc = oxNew(noRecipientFoundException::class);
throw $exc;
}
/**

View File

@ -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);
}