DocumentMailingService

Implements \Shopware\Plugins\ViisonPickwareERP\Components\Document\DocumentMailing, \Enlight_Hook

package

Default

Methods

__construct

__construct(\Shopware\Components\Model\ModelManager $entityManager, \Shopware_Components_TemplateMail $templateMailFactory, \Shopware\Plugins\ViisonCommon\Components\FileStorage\FileStorage $documentFileStorage) 

Arguments

$entityManager

\Shopware\Components\Model\ModelManager

$templateMailFactory

\Shopware_Components_TemplateMail

$documentFileStorage

\Shopware\Plugins\ViisonCommon\Components\FileStorage\FileStorage

Creates (but does not send) a new mail object based on the template having the given `$templateName` and attaches the file of the passed `$document` to it. Finally the mail is returned.

createDocumentMailFromTemplate(string $templateName, array $templateContext, \Shopware\Models\Order\Document\Document $document, \Shopware\Models\Shop\Shop $shop = null, array $mailConfig = array()) : \Enlight_Components_Mail
inheritdoc
Throws
\Shopware\Plugins\ViisonPickwareERP\Components\Document\DocumentMailingException

Arguments

$templateName

string

$templateContext

array

$document

\Shopware\Models\Order\Document\Document

$shop

\Shopware\Models\Shop\Shop

$mailConfig

array

Response

\Enlight_Components_Mail