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
9 
25 {
29  protected $_eventDispatcher;
30 
34  protected $_cacheManager;
35 
39  protected $_logger;
40 
44  protected $_appState;
45 
49  protected $_actionValidator;
50 
58  public function __construct(
59  \Psr\Log\LoggerInterface $logger,
60  \Magento\Framework\Event\ManagerInterface $eventDispatcher,
61  \Magento\Framework\App\CacheInterface $cacheManager,
62  \Magento\Framework\App\State $appState,
63  \Magento\Framework\Model\ActionValidator\RemoveAction $actionValidator
64  ) {
65  $this->_eventDispatcher = $eventDispatcher;
66  $this->_cacheManager = $cacheManager;
67  $this->_appState = $appState;
68  $this->_logger = $logger;
69  $this->_actionValidator = $actionValidator;
70  }
71 
75  public function getCacheManager()
76  {
77  return $this->_cacheManager;
78  }
79 
83  public function getEventDispatcher()
84  {
86  }
87 
91  public function getLogger()
92  {
93  return $this->_logger;
94  }
95 
99  public function getAppState()
100  {
101  return $this->_appState;
102  }
103 
107  public function getActionValidator()
108  {
110  }
111 }
__construct(\Psr\Log\LoggerInterface $logger, \Magento\Framework\Event\ManagerInterface $eventDispatcher, \Magento\Framework\App\CacheInterface $cacheManager, \Magento\Framework\App\State $appState, \Magento\Framework\Model\ActionValidator\RemoveAction $actionValidator)
Definition: Context.php:58
$logger