當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Data::__construct方法代碼示例

本文整理匯總了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;
 }
開發者ID:SummaSolutions,項目名稱:cart-magento2,代碼行數:23,代碼來源:Data.php


注:本文中的Magento\Payment\Helper\Data::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。