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


PHP Context::getResultFactory方法代码示例

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


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

示例1: __construct

 /**
  * @param \Magento\Framework\App\Action\Context $context
  */
 public function __construct(\Magento\Framework\App\Action\Context $context)
 {
     $this->_request = $context->getRequest();
     $this->_response = $context->getResponse();
     $this->resultRedirectFactory = $context->getResultRedirectFactory();
     $this->resultFactory = $context->getResultFactory();
 }
开发者ID:whoople,项目名称:magento2-testing,代码行数:10,代码来源:AbstractAction.php

示例2: __construct

 /**
  * @param Context $context
  */
 public function __construct(Context $context)
 {
     $this->_request = $context->getRequest();
     $this->_response = $context->getResponse();
     $this->resultRedirectFactory = $context->getResultRedirectFactory();
     $this->resultFactory = $context->getResultFactory();
 }
开发者ID:Doability,项目名称:magento2dev,代码行数:10,代码来源:AbstractAction.php

示例3: __construct

 /**
  * @param AuthorFactory $authorFactory
  * @param Registry      $registry
  * @param Context       $context
  */
 public function __construct(AuthorFactory $authorFactory, Registry $registry, Context $context)
 {
     $this->authorFactory = $authorFactory;
     $this->registry = $registry;
     $this->resultFactory = $context->getResultFactory();
     parent::__construct($context);
 }
开发者ID:mirasvit,项目名称:module-blog,代码行数:12,代码来源:View.php

示例4: __construct

 /**
  * AjaxPlugin constructor.
  * @param Context $context
  * @param \Boxalino\Intelligence\Helper\Data $bxHelperData
  * @param \Boxalino\Intelligence\Helper\P13n\Adapter $p13nHelper
  * @param AutocompleteInterface $autocomplete
  * @param \Boxalino\Intelligence\Helper\Autocomplete $autocompleteHelper
  */
 public function __construct(Context $context, \Boxalino\Intelligence\Helper\Data $bxHelperData, \Boxalino\Intelligence\Helper\P13n\Adapter $p13nHelper, \Boxalino\Intelligence\Helper\Autocomplete $autocompleteHelper)
 {
     $this->autocompleteHelper = $autocompleteHelper;
     $this->url = $context->getUrl();
     $this->request = $context->getRequest();
     $this->p13nHelper = $p13nHelper;
     $this->resultFactory = $context->getResultFactory();
     $this->bxHelperData = $bxHelperData;
 }
开发者ID:boxalino,项目名称:plugin-magento2,代码行数:17,代码来源:AjaxPlugin.php


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