本文整理汇总了PHP中Magento\Backend\App\Action\Context::getResultRedirectFactory方法的典型用法代码示例。如果您正苦于以下问题:PHP Context::getResultRedirectFactory方法的具体用法?PHP Context::getResultRedirectFactory怎么用?PHP Context::getResultRedirectFactory使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Magento\Backend\App\Action\Context
的用法示例。
在下文中一共展示了Context::getResultRedirectFactory方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\View\Result\PageFactory $resultPageFactory, \Magento\Backend\Model\View\Result\ForwardFactory $resultForwardFactory)
{
$this->resultPageFactory = $resultPageFactory;
$this->resultForwardFactory = $resultForwardFactory;
$this->resultRedirectFactory = $context->getResultRedirectFactory();
parent::__construct($context);
}
示例2: __construct
public function __construct(\Magento\Backend\App\Action\Context $context, \Wyomind\Watchlog\Cron\PeriodicalReport $periodicalReport, \Wyomind\Watchlog\Helper\Data $watchlogHelper)
{
$this->resultRedirectFactory = $context->getResultRedirectFactory();
$this->periodicalReport = $periodicalReport;
$this->watchlogHelper = $watchlogHelper;
parent::__construct($context);
}
示例3: __construct
/**
* @param \Magento\Backend\App\Action\Context $context
* @param \Magento\Framework\Model\Context $contextModel
* @param \Magento\Framework\Registry $coreRegistry
* @param \Magento\Framework\View\Result\PageFactory $resultPageFactory
* @param \Wyomind\Core\Helper\Data $coreHelper
* @param \Wyomind\SimpleGoogleShopping\Helper\Data $sgsHelper
* @param \Wyomind\SimpleGoogleShopping\Model\Feeds $sgsModel
* @param \Magento\Framework\Model\Context $context_
* @param \Magento\Backend\Model\View\Result\ForwardFactory $resultForwardFactory
* @param \Magento\Framework\Controller\Result\RawFactory $resultRawFactory
* @param \Magento\Framework\Filesystem\Directory\ReadFactory $directoryRead
* @param \Wyomind\SimpleGoogleShopping\Helper\Parser $parserHelper
* @param \Magento\Eav\Api\AttributeRepositoryInterface $attributeRepository
*/
public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\Model\Context $contextModel, \Magento\Framework\Registry $coreRegistry, \Magento\Framework\View\Result\PageFactory $resultPageFactory, \Wyomind\Core\Helper\Data $coreHelper, \Wyomind\SimpleGoogleShopping\Helper\Data $sgsHelper, \Wyomind\SimpleGoogleShopping\Model\Feeds $sgsModel, \Magento\Backend\Model\View\Result\ForwardFactory $resultForwardFactory, \Magento\Framework\Controller\Result\RawFactory $resultRawFactory, \Magento\Framework\Filesystem\Directory\ReadFactory $directoryRead, \Wyomind\SimpleGoogleShopping\Helper\Parser $parserHelper, \Magento\Eav\Api\AttributeRepositoryInterface $attributeRepository)
{
$this->coreRegistry = $coreRegistry;
$this->resultPageFactory = $resultPageFactory;
$this->coreHelper = $coreHelper;
$this->cacheManager = $contextModel->getCacheManager();
$this->sgsHelper = $sgsHelper;
$this->sgsModel = $sgsModel;
$this->resultForwardFactory = $resultForwardFactory;
$this->resultRedirectFactory = $context->getResultRedirectFactory();
$this->resultRawFactory = $resultRawFactory;
$this->parserHelper = $parserHelper;
$this->attributeRepository = $attributeRepository;
$this->directoryRead = $directoryRead->create("app/code/Wyomind/SimpleGoogleShopping");
parent::__construct($context);
}
示例4: __construct
public function __construct(\Magento\Backend\App\Action\Context $context, \Wyomind\Watchlog\Cron\History $history)
{
$this->resultRedirectFactory = $context->getResultRedirectFactory();
$this->history = $history;
parent::__construct($context);
}