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 
24 {
30  protected $_logger;
31 
37  protected $_filesystem;
38 
44  protected $_viewFileSystem;
45 
51  protected $enginePool;
52 
58  protected $_appState;
59 
65  protected $_storeManager;
66 
70  protected $pageConfig;
71 
75  protected $resolver;
76 
80  protected $validator;
81 
112  public function __construct(
113  \Magento\Framework\App\RequestInterface $request,
114  \Magento\Framework\View\LayoutInterface $layout,
115  \Magento\Framework\Event\ManagerInterface $eventManager,
116  \Magento\Framework\UrlInterface $urlBuilder,
117  \Magento\Framework\App\CacheInterface $cache,
118  \Magento\Framework\View\DesignInterface $design,
119  \Magento\Framework\Session\SessionManagerInterface $session,
120  \Magento\Framework\Session\SidResolverInterface $sidResolver,
121  \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig,
122  \Magento\Framework\View\Asset\Repository $assetRepo,
123  \Magento\Framework\View\ConfigInterface $viewConfig,
124  \Magento\Framework\App\Cache\StateInterface $cacheState,
125  \Psr\Log\LoggerInterface $logger,
126  \Magento\Framework\Escaper $escaper,
127  \Magento\Framework\Filter\FilterManager $filterManager,
128  \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate,
129  \Magento\Framework\Translate\Inline\StateInterface $inlineTranslation,
130  \Magento\Framework\Filesystem $filesystem,
131  \Magento\Framework\View\FileSystem $viewFileSystem,
132  \Magento\Framework\View\TemplateEnginePool $enginePool,
133  \Magento\Framework\App\State $appState,
134  \Magento\Store\Model\StoreManagerInterface $storeManager,
135  \Magento\Framework\View\Page\Config $pageConfig,
136  \Magento\Framework\View\Element\Template\File\Resolver $resolver,
138  ) {
139  parent::__construct(
140  $request,
141  $layout,
142  $eventManager,
143  $urlBuilder,
144  $cache,
145  $design,
146  $session,
147  $sidResolver,
148  $scopeConfig,
149  $assetRepo,
150  $viewConfig,
151  $cacheState,
152  $logger,
153  $escaper,
155  $localeDate,
157  );
158  $this->resolver = $resolver;
159  $this->validator = $validator;
160  $this->_storeManager = $storeManager;
161  $this->_appState = $appState;
162  $this->_logger = $logger;
163  $this->_filesystem = $filesystem;
164  $this->_viewFileSystem = $viewFileSystem;
165  $this->enginePool = $enginePool;
166  $this->pageConfig = $pageConfig;
167  }
168 
174  public function getResolver()
175  {
176  return $this->resolver;
177  }
178 
184  public function getValidator()
185  {
186  return $this->validator;
187  }
188 
194  public function getFilesystem()
195  {
196  return $this->_filesystem;
197  }
198 
204  public function getLogger()
205  {
206  return $this->_logger;
207  }
208 
214  public function getViewFileSystem()
215  {
216  return $this->_viewFileSystem;
217  }
218 
224  public function getEnginePool()
225  {
226  return $this->enginePool;
227  }
228 
234  public function getAppState()
235  {
236  return $this->_appState;
237  }
238 
244  public function getStoreManager()
245  {
246  return $this->_storeManager;
247  }
248 
252  public function getPageConfig()
253  {
254  return $this->pageConfig;
255  }
256 }
__construct(\Magento\Framework\App\RequestInterface $request, \Magento\Framework\View\LayoutInterface $layout, \Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Framework\UrlInterface $urlBuilder, \Magento\Framework\App\CacheInterface $cache, \Magento\Framework\View\DesignInterface $design, \Magento\Framework\Session\SessionManagerInterface $session, \Magento\Framework\Session\SidResolverInterface $sidResolver, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Framework\View\Asset\Repository $assetRepo, \Magento\Framework\View\ConfigInterface $viewConfig, \Magento\Framework\App\Cache\StateInterface $cacheState, \Psr\Log\LoggerInterface $logger, \Magento\Framework\Escaper $escaper, \Magento\Framework\Filter\FilterManager $filterManager, \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate, \Magento\Framework\Translate\Inline\StateInterface $inlineTranslation, \Magento\Framework\Filesystem $filesystem, \Magento\Framework\View\FileSystem $viewFileSystem, \Magento\Framework\View\TemplateEnginePool $enginePool, \Magento\Framework\App\State $appState, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\View\Page\Config $pageConfig, \Magento\Framework\View\Element\Template\File\Resolver $resolver, \Magento\Framework\View\Element\Template\File\Validator $validator)
Definition: Context.php:112
$storeManager
$logger
$filesystem