本文整理汇总了PHP中Magento\Payment\Helper\Data::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Data::__construct方法的具体用法?PHP Data::__construct怎么用?PHP Data::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Magento\Payment\Helper\Data
的用法示例。
在下文中一共展示了Data::__construct方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Data constructor.
*
* @param Message\MessageInterface $messageInterface
* @param \Magento\Framework\App\Helper\Context $context
* @param LayoutFactory $layoutFactory
* @param \Magento\Payment\Model\Method\Factory $paymentMethodFactory
* @param \Magento\Store\Model\App\Emulation $appEmulation
* @param \Magento\Payment\Model\Config $paymentConfig
* @param \Magento\Framework\App\Config\Initial $initialConfig
* @param \Magento\Framework\Setup\ModuleContextInterface $moduleContext
* @param \MercadoPago\Core\Logger\Logger $logger
* @param \Magento\Sales\Model\ResourceModel\Status\Collection $statusFactory
*/
public function __construct(\MercadoPago\Core\Helper\Message\MessageInterface $messageInterface, \Magento\Framework\App\Helper\Context $context, LayoutFactory $layoutFactory, \Magento\Payment\Model\Method\Factory $paymentMethodFactory, \Magento\Store\Model\App\Emulation $appEmulation, \Magento\Payment\Model\Config $paymentConfig, \Magento\Framework\App\Config\Initial $initialConfig, \Magento\Framework\Setup\ModuleContextInterface $moduleContext, \MercadoPago\Core\Logger\Logger $logger, \Magento\Sales\Model\ResourceModel\Status\Collection $statusFactory, \Magento\Sales\Model\OrderFactory $orderFactory)
{
parent::__construct($context, $layoutFactory, $paymentMethodFactory, $appEmulation, $paymentConfig, $initialConfig);
$this->_messageInterface = $messageInterface;
$this->_mpLogger = $logger;
$this->_moduleContext = $moduleContext;
$this->_statusFactory = $statusFactory;
$this->_orderFactory = $orderFactory;
}