本文整理汇总了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();
}
示例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);
}
示例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();
}
示例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;
}
示例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();
}
示例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);
}
示例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;
}
示例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);
}