5
5
*/
6
6
namespace Magento \Framework \App \Action ;
7
7
8
+ use Magento \Framework \Controller \ResultFactory ;
9
+
8
10
class Context implements \Magento \Framework \ObjectManager \ContextInterface
9
11
{
10
12
/**
@@ -57,6 +59,11 @@ class Context implements \Magento\Framework\ObjectManager\ContextInterface
57
59
*/
58
60
protected $ resultRedirectFactory ;
59
61
62
+ /**
63
+ * @var \Magento\Framework\Controller\ResultFactory
64
+ */
65
+ protected $ resultFactory ;
66
+
60
67
/**
61
68
* @param \Magento\Framework\App\RequestInterface $request
62
69
* @param \Magento\Framework\App\ResponseInterface $response
@@ -68,6 +75,7 @@ class Context implements \Magento\Framework\ObjectManager\ContextInterface
68
75
* @param \Magento\Framework\App\ViewInterface $view
69
76
* @param \Magento\Framework\Message\ManagerInterface $messageManager
70
77
* @param \Magento\Framework\Controller\Result\RedirectFactory $resultRedirectFactory
78
+ * @param \Magento\Framework\Controller\ResultFactory $resultFactory
71
79
*
72
80
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
73
81
*/
@@ -81,7 +89,8 @@ public function __construct(
81
89
\Magento \Framework \App \ActionFlag $ actionFlag ,
82
90
\Magento \Framework \App \ViewInterface $ view ,
83
91
\Magento \Framework \Message \ManagerInterface $ messageManager ,
84
- \Magento \Framework \Controller \Result \RedirectFactory $ resultRedirectFactory
92
+ \Magento \Framework \Controller \Result \RedirectFactory $ resultRedirectFactory ,
93
+ ResultFactory $ resultFactory
85
94
) {
86
95
$ this ->_request = $ request ;
87
96
$ this ->_response = $ response ;
@@ -93,6 +102,7 @@ public function __construct(
93
102
$ this ->_view = $ view ;
94
103
$ this ->messageManager = $ messageManager ;
95
104
$ this ->resultRedirectFactory = $ resultRedirectFactory ;
105
+ $ this ->resultFactory = $ resultFactory ;
96
106
}
97
107
98
108
/**
0 commit comments