Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Attributes
EmailSenderHandler Class Reference

Public Member Functions

 __construct (\Magento\Sales\Model\Order\Email\Sender $emailSender, \Magento\Sales\Model\ResourceModel\EntityAbstract $entityResource, \Magento\Sales\Model\ResourceModel\Collection\AbstractCollection $entityCollection, \Magento\Framework\App\Config\ScopeConfigInterface $globalConfig, IdentityInterface $identityContainer=null, \Magento\Store\Model\StoreManagerInterface $storeManager=null)
 

Protected Attributes

 $emailSender
 
 $entityResource
 
 $entityCollection
 
 $globalConfig
 

Detailed Description

Sales emails sending

Performs handling of cron jobs related to sending emails to customers after creation/modification of Order, Invoice, Shipment or Creditmemo.

Definition at line 16 of file EmailSenderHandler.php.

Constructor & Destructor Documentation

◆ __construct()

Parameters
\Magento\Sales\Model\Order\Email\Sender$emailSender
\Magento\Sales\Model\ResourceModel\EntityAbstract$entityResource
\Magento\Sales\Model\ResourceModel\Collection\AbstractCollection$entityCollection
\Magento\Framework\App\Config\ScopeConfigInterface$globalConfig
IdentityInterface | null$identityContainer
\Magento\Store\Model\StoreManagerInterface$storeManager
Exceptions

Definition at line 65 of file EmailSenderHandler.php.

72  {
73  $this->emailSender = $emailSender;
74  $this->entityResource = $entityResource;
75  $this->entityCollection = $entityCollection;
76  $this->globalConfig = $globalConfig;
77 
78  $this->identityContainer = $identityContainer ?: \Magento\Framework\App\ObjectManager::getInstance()
79  ->get(\Magento\Sales\Model\Order\Email\Container\NullIdentity::class);
81  ->get(\Magento\Store\Model\StoreManagerInterface::class);
82  }
$storeManager

Field Documentation

◆ $emailSender

$emailSender
protected

Definition at line 23 of file EmailSenderHandler.php.

◆ $entityCollection

$entityCollection
protected

Definition at line 37 of file EmailSenderHandler.php.

◆ $entityResource

$entityResource
protected

Definition at line 30 of file EmailSenderHandler.php.

◆ $globalConfig

$globalConfig
protected

Definition at line 44 of file EmailSenderHandler.php.


The documentation for this class was generated from the following file: