Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Context.php
Go to the documentation of this file.
1 <?php
7 
9 
25 {
29  protected $_request;
30 
34  protected $_response;
35 
39  protected $_objectManager;
40 
44  protected $_eventManager;
45 
49  protected $_url;
50 
54  protected $_redirect;
55 
59  protected $_actionFlag;
60 
64  protected $_view;
65 
69  protected $messageManager;
70 
75 
79  protected $resultFactory;
80 
96  public function __construct(
100  \Magento\Framework\Event\ManagerInterface $eventManager,
101  \Magento\Framework\UrlInterface $url,
102  \Magento\Framework\App\Response\RedirectInterface $redirect,
103  \Magento\Framework\App\ActionFlag $actionFlag,
104  \Magento\Framework\App\ViewInterface $view,
105  \Magento\Framework\Message\ManagerInterface $messageManager,
106  \Magento\Framework\Controller\Result\RedirectFactory $resultRedirectFactory,
108  ) {
109  $this->_request = $request;
110  $this->_response = $response;
111  $this->_objectManager = $objectManager;
112  $this->_eventManager = $eventManager;
113  $this->_url = $url;
114  $this->_redirect = $redirect;
115  $this->_actionFlag = $actionFlag;
116  $this->_view = $view;
117  $this->messageManager = $messageManager;
118  $this->resultRedirectFactory = $resultRedirectFactory;
119  $this->resultFactory = $resultFactory;
120  }
121 
125  public function getActionFlag()
126  {
127  return $this->_actionFlag;
128  }
129 
133  public function getEventManager()
134  {
135  return $this->_eventManager;
136  }
137 
141  public function getView()
142  {
143  return $this->_view;
144  }
145 
149  public function getObjectManager()
150  {
151  return $this->_objectManager;
152  }
153 
157  public function getRedirect()
158  {
159  return $this->_redirect;
160  }
161 
165  public function getRequest()
166  {
167  return $this->_request;
168  }
169 
173  public function getResponse()
174  {
175  return $this->_response;
176  }
177 
181  public function getUrl()
182  {
183  return $this->_url;
184  }
185 
189  public function getMessageManager()
190  {
191  return $this->messageManager;
192  }
193 
197  public function getResultRedirectFactory()
198  {
200  }
201 
205  public function getResultFactory()
206  {
207  return $this->resultFactory;
208  }
209 }
__construct(\Magento\Framework\App\RequestInterface $request, \Magento\Framework\App\ResponseInterface $response, \Magento\Framework\ObjectManagerInterface $objectManager, \Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Framework\UrlInterface $url, \Magento\Framework\App\Response\RedirectInterface $redirect, \Magento\Framework\App\ActionFlag $actionFlag, \Magento\Framework\App\ViewInterface $view, \Magento\Framework\Message\ManagerInterface $messageManager, \Magento\Framework\Controller\Result\RedirectFactory $resultRedirectFactory, ResultFactory $resultFactory)
Definition: Context.php:96
$response
Definition: 404.php:11
$objectManager
Definition: bootstrap.php:17