__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
$document
\Shopware\Models\Order\Document\Document
$shop
\Shopware\Models\Shop\Shop
Response
\Enlight_Components_Mail