Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AbstractAction.php
Go to the documentation of this file.
1 <?php
9 
12 
14 {
18  protected $_request;
19 
23  protected $_response;
24 
29 
33  protected $resultFactory;
34 
38  public function __construct(
39  Context $context
40  ) {
41  $this->_request = $context->getRequest();
42  $this->_response = $context->getResponse();
43  $this->resultRedirectFactory = $context->getResultRedirectFactory();
44  $this->resultFactory = $context->getResultFactory();
45  }
46 
53  abstract public function dispatch(RequestInterface $request);
54 
60  public function getRequest()
61  {
62  return $this->_request;
63  }
64 
70  public function getResponse()
71  {
72  return $this->_response;
73  }
74 }