Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CookieTester.php
Go to the documentation of this file.
1 <?php
7 
11 
17 {
19  protected $cookieManager;
20 
23 
27  protected $_response;
28 
32  protected $request;
33 
39  public function __construct(
40  \Magento\Framework\App\Action\Context $context,
43  ) {
44  $this->cookieManager = $cookieManager;
45  $this->cookieMetadataFactory = $cookieMetadataFactory;
46  $this->_response = $context->getResponse();
47  $this->request = $context->getRequest();
48  }
49 
53  protected function getCookieMetadataFactory()
54  {
56  }
57 
61  protected function getCookieManager()
62  {
63  return $this->cookieManager;
64  }
65 
73  {
74  $this->request = $request;
75  $result = $this->execute();
76  return $result ? $result : $this->_response;
77  }
78 }