當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。