diff --git a/src/Application/Model/MessageTypes/Sms.php b/src/Application/Model/MessageTypes/Sms.php index febca24..3281d12 100644 --- a/src/Application/Model/MessageTypes/Sms.php +++ b/src/Application/Model/MessageTypes/Sms.php @@ -233,7 +233,7 @@ class Sms extends AbstractMessage $request = $this->getRequest($configuration, $client); $requestRecipientsList = $request->getRecipientsList(); - foreach ($recipientsList->getRecipients() as $recipient) { + foreach ($recipientsList->getRecipientsList() as $recipient) { $requestRecipientsList->add($recipient); } diff --git a/src/Config/oxid.yaml b/src/Config/oxid.yaml index 49e4697..a8bfcfe 100644 --- a/src/Config/oxid.yaml +++ b/src/Config/oxid.yaml @@ -24,6 +24,14 @@ services: - 'getConfig' shared: true + # config + d3ox.linkmobility.OxidEsales\Eshop\Core\Request: + class: 'OxidEsales\Eshop\Core\Request' + factory: + - 'OxidEsales\Eshop\Core\Registry' + - 'getRequest' + shared: true + # lang d3ox.linkmobility.OxidEsales\Eshop\Core\Language: class: 'OxidEsales\Eshop\Core\Session'