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