当前位置: 首页>>代码示例>>PHP>>正文


PHP Context::getMessageManager方法代码示例

本文整理汇总了PHP中Magento\Backend\App\Action\Context::getMessageManager方法的典型用法代码示例。如果您正苦于以下问题:PHP Context::getMessageManager方法的具体用法?PHP Context::getMessageManager怎么用?PHP Context::getMessageManager使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Magento\Backend\App\Action\Context的用法示例。


在下文中一共展示了Context::getMessageManager方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * ResetContactImport constructor.
  *
  * @param \Dotdigitalgroup\Email\Model\ResourceModel\ContactFactory $contactResourceFactory
  * @param \Dotdigitalgroup\Email\Model\ContactFactory               $contactFactory
  * @param \Dotdigitalgroup\Email\Helper\Data                        $data
  * @param \Magento\Backend\App\Action\Context                       $context
  */
 public function __construct(\Dotdigitalgroup\Email\Model\ResourceModel\ContactFactory $contactResourceFactory, \Dotdigitalgroup\Email\Model\ContactFactory $contactFactory, \Dotdigitalgroup\Email\Helper\Data $data, \Magento\Backend\App\Action\Context $context)
 {
     $this->contactFactory = $contactFactory;
     $this->contactResourceFactory = $contactResourceFactory;
     $this->helper = $data;
     $this->messageManager = $context->getMessageManager();
 }
开发者ID:dotmailer,项目名称:dotmailer-magento2-extension,代码行数:15,代码来源:ResetContactImport.php

示例2: __construct

 /**
  * Automapdatafields constructor.
  *
  * @param \Dotdigitalgroup\Email\Helper\Data               $data
  * @param \Dotdigitalgroup\Email\Model\Connector\Datafield $datafield
  * @param \Magento\Backend\App\Action\Context              $context
  */
 public function __construct(\Dotdigitalgroup\Email\Helper\Data $data, \Dotdigitalgroup\Email\Model\Connector\Datafield $datafield, \Magento\Backend\App\Action\Context $context)
 {
     $this->data = $data;
     $this->datafield = $datafield;
     $this->messageManager = $context->getMessageManager();
     parent::__construct($context);
 }
开发者ID:dotmailer,项目名称:dotmailer-magento2-extension,代码行数:14,代码来源:Automapdatafields.php

示例3: __construct

 /**
  * AccountTransactionalDataCheck constructor.
  *
  * @param \Dotdigitalgroup\Email\Model\ContactFactory $contactFactory
  * @param \Dotdigitalgroup\Email\Helper\Data          $data
  * @param \Magento\Backend\App\Action\Context         $context
  * @param \Magento\Store\Model\StoreManagerInterface  $storeManagerInterface
  */
 public function __construct(\Dotdigitalgroup\Email\Model\ContactFactory $contactFactory, \Dotdigitalgroup\Email\Helper\Data $data, \Magento\Backend\App\Action\Context $context, \Magento\Store\Model\StoreManagerInterface $storeManagerInterface)
 {
     $this->_helper = $data;
     $this->_context = $context;
     $this->_contactFactory = $contactFactory;
     $this->_request = $context->getRequest();
     $this->_storeManager = $storeManagerInterface;
     $this->messageManager = $context->getMessageManager();
 }
开发者ID:dragonsword007008,项目名称:magento2,代码行数:17,代码来源:AccountTransactionalDataCheck.php

示例4: __construct

 /**
  * ApiValidate constructor.
  *
  * @param \Dotdigitalgroup\Email\Helper\Data           $data
  * @param \Magento\Backend\App\Action\Context          $context
  * @param \Magento\Framework\App\Config\Storage\Writer $writer
  */
 public function __construct(\Dotdigitalgroup\Email\Helper\Data $data, \Dotdigitalgroup\Email\Model\Apiconnector\Test $test, \Magento\Backend\App\Action\Context $context, \Magento\Framework\App\Config\Storage\Writer $writer)
 {
     $this->helper = $data;
     $this->test = $test;
     $this->context = $context;
     $this->messageManager = $context->getMessageManager();
     $this->objectManager = $context->getObjectManager();
     $this->writer = $writer;
 }
开发者ID:dotmailer,项目名称:dotmailer-magento2-extension,代码行数:16,代码来源:ApiValidate.php

示例5: __construct

 /**
  * Contact constructor.
  *
  * @param \Dotdigitalgroup\Email\Model\ProccessorFactory                   $proccessorFactory
  * @param CustomerFactory                                                  $customerFactory
  * @param \Magento\Framework\Registry                                      $registry
  * @param \Magento\Framework\App\ResourceConnection                        $resource
  * @param \Dotdigitalgroup\Email\Helper\File                               $file
  * @param \Dotdigitalgroup\Email\Helper\Data                               $helper
  * @param \Dotdigitalgroup\Email\Helper\Config                             $config
  * @param \Magento\Backend\App\Action\Context                              $context
  * @param \Magento\Newsletter\Model\SubscriberFactory                      $subscriberFactory
  * @param \Magento\Framework\App\Config\ScopeConfigInterface               $scopeConfig
  * @param \Magento\Store\Model\StoreManagerInterface                       $storeManagerInterface
  * @param \Dotdigitalgroup\Email\Model\ContactFactory                      $contactFactory
  * @param \Magento\Customer\Model\ResourceModel\Customer\CollectionFactory $customerCollectionFactory
  * @param \Dotdigitalgroup\Email\Model\Resource\Contact\CollectionFactory  $contactCollectionFactory
  */
 public function __construct(\Dotdigitalgroup\Email\Model\ProccessorFactory $proccessorFactory, \Dotdigitalgroup\Email\Model\Apiconnector\CustomerFactory $customerFactory, \Magento\Framework\Registry $registry, \Magento\Framework\App\ResourceConnection $resource, \Dotdigitalgroup\Email\Helper\File $file, \Dotdigitalgroup\Email\Helper\Data $helper, \Dotdigitalgroup\Email\Helper\Config $config, \Magento\Backend\App\Action\Context $context, \Magento\Newsletter\Model\SubscriberFactory $subscriberFactory, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Store\Model\StoreManagerInterface $storeManagerInterface, \Dotdigitalgroup\Email\Model\ContactFactory $contactFactory, \Magento\Customer\Model\ResourceModel\Customer\CollectionFactory $customerCollectionFactory, \Dotdigitalgroup\Email\Model\Resource\Contact\CollectionFactory $contactCollectionFactory)
 {
     $this->_proccessorFactory = $proccessorFactory;
     $this->_file = $file;
     $this->_config = $config;
     $this->_helper = $helper;
     $this->_registry = $registry;
     $this->_resource = $resource;
     $this->_scopeConfig = $scopeConfig;
     $this->_storeManager = $storeManagerInterface;
     $this->_messageManager = $context->getMessageManager();
     //email contact
     $this->_emailCustomer = $customerFactory;
     $this->_contactFactory = $contactFactory;
     $this->_customerCollection = $customerCollectionFactory->create();
     $this->_customerCollection->addAttributeToSelect('*');
     //email contact collection
     $this->_contactCollection = $contactCollectionFactory->create();
     $this->_contactCollection->addFieldToSelect('*');
     //newsletter subscriber
     $this->_subscriberFactory = $subscriberFactory->create();
 }
开发者ID:dragonsword007008,项目名称:magento2,代码行数:40,代码来源:Contact.php

示例6: __construct

 public function __construct(\Dotdigitalgroup\Email\Model\CronFactory $cronFactory, \Magento\Backend\App\Action\Context $context)
 {
     $this->_cronFactory = $cronFactory;
     $this->messageManager = $context->getMessageManager();
     parent::__construct($context);
 }
开发者ID:dragonsword007008,项目名称:magento2,代码行数:6,代码来源:Subscribersync.php

示例7: __construct

 /**
  * Contact constructor.
  *
  * @param \Dotdigitalgroup\Email\Model\ImporterFactory $importerFactory
  * @param \Dotdigitalgroup\Email\Model\Apiconnector\CustomerFactory $customerFactory
  * @param \Magento\Framework\Registry                                      $registry
  * @param \Magento\Framework\App\ResourceConnection                        $resource
  * @param \Dotdigitalgroup\Email\Helper\File                               $file
  * @param \Dotdigitalgroup\Email\Helper\Data                               $helper
  * @param \Dotdigitalgroup\Email\Helper\Config                             $config
  * @param \Magento\Backend\App\Action\Context                              $context
  * @param \Magento\Newsletter\Model\SubscriberFactory                      $subscriberFactory
  * @param \Magento\Framework\App\Config\ScopeConfigInterface               $scopeConfig
  * @param \Magento\Store\Model\StoreManagerInterface                       $storeManagerInterface
  * @param \Dotdigitalgroup\Email\Model\ContactFactory                      $contactFactory
  * @param \Magento\Customer\Model\ResourceModel\Customer\CollectionFactory $customerCollectionFactory
  * @param \Dotdigitalgroup\Email\Model\ResourceModel\Contact\CollectionFactory $contactCollectionFactory
  */
 public function __construct(\Dotdigitalgroup\Email\Model\ImporterFactory $importerFactory, \Dotdigitalgroup\Email\Model\Apiconnector\CustomerFactory $customerFactory, \Magento\Framework\Registry $registry, \Magento\Framework\App\ResourceConnection $resource, \Dotdigitalgroup\Email\Helper\File $file, \Dotdigitalgroup\Email\Helper\Data $helper, \Dotdigitalgroup\Email\Helper\Config $config, \Magento\Backend\App\Action\Context $context, \Magento\Newsletter\Model\SubscriberFactory $subscriberFactory, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Store\Model\StoreManagerInterface $storeManagerInterface, \Dotdigitalgroup\Email\Model\ContactFactory $contactFactory, \Magento\Customer\Model\ResourceModel\Customer\CollectionFactory $customerCollectionFactory, \Dotdigitalgroup\Email\Model\ResourceModel\Contact\CollectionFactory $contactCollectionFactory)
 {
     $this->importerFactory = $importerFactory;
     $this->file = $file;
     $this->config = $config;
     $this->helper = $helper;
     $this->registry = $registry;
     $this->resource = $resource;
     $this->scopeConfig = $scopeConfig;
     $this->storeManager = $storeManagerInterface;
     $this->messageManager = $context->getMessageManager();
     //email contact
     $this->emailCustomer = $customerFactory;
     $this->contactFactory = $contactFactory;
     $this->customerCollection = $customerCollectionFactory;
     //email contact collection
     $this->contactCollection = $contactCollectionFactory;
     //newsletter subscriber
     $this->subscriberFactory = $subscriberFactory;
 }
开发者ID:dotmailer,项目名称:dotmailer-magento2-extension,代码行数:38,代码来源:Contact.php

示例8: __construct

 /**
  * Wishlistsreset constructor.
  *
  * @param \Dotdigitalgroup\Email\Model\ResourceModel\WishlistFactory $wishlistFactory
  * @param \Magento\Backend\App\Action\Context                        $context
  */
 public function __construct(\Dotdigitalgroup\Email\Model\ResourceModel\WishlistFactory $wishlistFactory, \Magento\Backend\App\Action\Context $context)
 {
     $this->wishlistFactory = $wishlistFactory;
     $this->messageManager = $context->getMessageManager();
     parent::__construct($context);
 }
开发者ID:dotmailer,项目名称:dotmailer-magento2-extension,代码行数:12,代码来源:Wishlistsreset.php


注:本文中的Magento\Backend\App\Action\Context::getMessageManager方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。