Skip to content

Commit 82b0fab

Browse files
author
Yuri Kovsher
committed
Merge branch 'result_factory' into MAGETWO-36105
2 parents 9b1e1bb + ec4651f commit 82b0fab

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

lib/internal/Magento/Framework/App/Action/AbstractAction.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ abstract class AbstractAction implements \Magento\Framework\App\ActionInterface
2424
*/
2525
protected $resultRedirectFactory;
2626

27+
/**
28+
* @var \Magento\Framework\Controller\ResultFactory;
29+
*/
30+
protected $resultFactory;
31+
2732
/**
2833
* @param \Magento\Framework\App\Action\Context $context
2934
*/
@@ -33,6 +38,7 @@ public function __construct(
3338
$this->_request = $context->getRequest();
3439
$this->_response = $context->getResponse();
3540
$this->resultRedirectFactory = $context->getResultRedirectFactory();
41+
$this->resultFactory = $context->getResultFactory();
3642
}
3743

3844
/**

lib/internal/Magento/Framework/App/Action/Context.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,4 +184,12 @@ public function getResultRedirectFactory()
184184
{
185185
return $this->resultRedirectFactory;
186186
}
187+
188+
/**
189+
* @return \Magento\Framework\Controller\ResultFactory
190+
*/
191+
public function getResultFactory()
192+
{
193+
return $this->resultFactory;
194+
}
187195
}

0 commit comments

Comments
 (0)