Ejemplo n.º 1
0
 /**
  * @param \Magento\Framework\Model\Context $context
  * @param \Magento\Framework\View\DesignInterface $design
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Store\Model\App\Emulation $appEmulation
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Framework\View\Asset\Repository $assetRepo
  * @param \Magento\Framework\Filesystem $filesystem
  * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
  * @param \Magento\Email\Model\Template\Config $emailConfig
  * @param \Magento\Email\Model\TemplateFactory $templateFactory The template directive requires an email
  *        template model, not newsletter model, as templates overridden in backend are loaded from email table.
  * @param \Magento\Framework\Filter\FilterManager $filterManager
  * @param \Magento\Framework\Url|\Magento\Framework\UrlInterface $urlModel
  * @param \Magento\Framework\App\RequestInterface $request
  * @param \Magento\Newsletter\Model\Template\FilterFactory $filterFactory ,
  * @param array $data
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Framework\Model\Context $context, \Magento\Framework\View\DesignInterface $design, \Magento\Framework\Registry $registry, \Magento\Store\Model\App\Emulation $appEmulation, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\View\Asset\Repository $assetRepo, \Magento\Framework\Filesystem $filesystem, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Email\Model\Template\Config $emailConfig, \Magento\Email\Model\TemplateFactory $templateFactory, \Magento\Framework\Filter\FilterManager $filterManager, \Magento\Framework\UrlInterface $urlModel, \Magento\Framework\App\RequestInterface $request, \Magento\Newsletter\Model\Template\FilterFactory $filterFactory, array $data = [])
 {
     parent::__construct($context, $design, $registry, $appEmulation, $storeManager, $assetRepo, $filesystem, $scopeConfig, $emailConfig, $templateFactory, $filterManager, $urlModel, $data);
     $this->_storeManager = $storeManager;
     $this->_request = $request;
     $this->_filterFactory = $filterFactory;
 }
Ejemplo n.º 2
0
 /**
  * @param \Magento\Framework\Model\Context $context
  * @param \Magento\Framework\View\DesignInterface $design
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Store\Model\App\Emulation $appEmulation
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Newsletter\Model\Template\Filter $templateFilter
  * @param \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate
  * @param \Magento\Framework\Stdlib\DateTime\DateTime $date
  * @param \Magento\Newsletter\Model\TemplateFactory $templateFactory
  * @param \Magento\Newsletter\Model\ProblemFactory $problemFactory
  * @param \Magento\Newsletter\Model\Resource\Subscriber\CollectionFactory $subscriberCollectionFactory
  * @param \Magento\Newsletter\Model\Queue\TransportBuilder $transportBuilder
  * @param array $data
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Framework\Model\Context $context, \Magento\Framework\View\DesignInterface $design, \Magento\Framework\Registry $registry, \Magento\Store\Model\App\Emulation $appEmulation, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Newsletter\Model\Template\Filter $templateFilter, \Magento\Framework\Stdlib\DateTime\DateTime $date, \Magento\Newsletter\Model\TemplateFactory $templateFactory, \Magento\Newsletter\Model\ProblemFactory $problemFactory, \Magento\Newsletter\Model\Resource\Subscriber\CollectionFactory $subscriberCollectionFactory, \Magento\Newsletter\Model\Queue\TransportBuilder $transportBuilder, array $data = [])
 {
     parent::__construct($context, $design, $registry, $appEmulation, $storeManager, $data);
     $this->_templateFilter = $templateFilter;
     $this->_date = $date;
     $this->_templateFactory = $templateFactory;
     $this->_problemFactory = $problemFactory;
     $this->_subscribersCollection = $subscriberCollectionFactory->create();
     $this->_transportBuilder = $transportBuilder;
 }
Ejemplo n.º 3
0
 /**
  * @param \Magento\Framework\Model\Context $context
  * @param \Magento\Framework\View\DesignInterface $design
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Core\Model\App\Emulation $appEmulation
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Framework\App\RequestInterface $request
  * @param \Magento\Newsletter\Model\Template\Filter $filter
  * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
  * @param \Magento\Newsletter\Model\TemplateFactory $templateFactory
  * @param \Magento\Framework\Filter\FilterManager $filterManager
  * @param array $data
  */
 public function __construct(\Magento\Framework\Model\Context $context, \Magento\Framework\View\DesignInterface $design, \Magento\Framework\Registry $registry, \Magento\Core\Model\App\Emulation $appEmulation, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\App\RequestInterface $request, \Magento\Newsletter\Model\Template\Filter $filter, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Newsletter\Model\TemplateFactory $templateFactory, \Magento\Framework\Filter\FilterManager $filterManager, array $data = array())
 {
     parent::__construct($context, $design, $registry, $appEmulation, $storeManager, $data);
     $this->_storeManager = $storeManager;
     $this->_request = $request;
     $this->_filter = $filter;
     $this->_scopeConfig = $scopeConfig;
     $this->_templateFactory = $templateFactory;
     $this->_filterManager = $filterManager;
 }
Ejemplo n.º 4
0
 /**
  * @param \Magento\Framework\Model\Context $context
  * @param \Magento\Framework\View\DesignInterface $design
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Core\Model\App\Emulation $appEmulation
  * @param \Magento\Framework\StoreManagerInterface $storeManager
  * @param \Magento\Framework\App\Filesystem $filesystem
  * @param \Magento\Framework\View\Asset\Repository $assetRepo
  * @param \Magento\Framework\View\FileSystem $viewFileSystem
  * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
  * @param Template\FilterFactory $emailFilterFactory
  * @param Template\Config $emailConfig
  * @param array $data
  *
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Framework\Model\Context $context, \Magento\Framework\View\DesignInterface $design, \Magento\Framework\Registry $registry, \Magento\Core\Model\App\Emulation $appEmulation, StoreManagerInterface $storeManager, \Magento\Framework\App\Filesystem $filesystem, \Magento\Framework\View\Asset\Repository $assetRepo, \Magento\Framework\View\FileSystem $viewFileSystem, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Email\Model\Template\FilterFactory $emailFilterFactory, \Magento\Email\Model\Template\Config $emailConfig, array $data = array())
 {
     $this->_scopeConfig = $scopeConfig;
     $this->_filesystem = $filesystem;
     $this->_assetRepo = $assetRepo;
     $this->_viewFileSystem = $viewFileSystem;
     $this->_emailFilterFactory = $emailFilterFactory;
     $this->_emailConfig = $emailConfig;
     parent::__construct($context, $design, $registry, $appEmulation, $storeManager, $data);
 }
Ejemplo n.º 5
0
 /**
  * @param \Magento\Framework\Model\Context $context
  * @param \Magento\Framework\View\DesignInterface $design
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Store\Model\App\Emulation $appEmulation
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Framework\View\Asset\Repository $assetRepo
  * @param \Magento\Framework\Filesystem $filesystem
  * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
  * @param Template\Config $emailConfig
  * @param \Magento\Email\Model\TemplateFactory $templateFactory
  * @param \Magento\Email\Model\Template\FilterFactory $filterFactory
  * @param array $data
  *
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Framework\Model\Context $context, \Magento\Framework\View\DesignInterface $design, \Magento\Framework\Registry $registry, \Magento\Store\Model\App\Emulation $appEmulation, StoreManagerInterface $storeManager, \Magento\Framework\View\Asset\Repository $assetRepo, \Magento\Framework\Filesystem $filesystem, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Email\Model\Template\Config $emailConfig, \Magento\Email\Model\TemplateFactory $templateFactory, \Magento\Email\Model\Template\FilterFactory $filterFactory, array $data = [])
 {
     $this->filterFactory = $filterFactory;
     parent::__construct($context, $design, $registry, $appEmulation, $storeManager, $assetRepo, $filesystem, $scopeConfig, $emailConfig, $templateFactory, $data);
 }