Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ReaderList.php
Go to the documentation of this file.
1 <?php
7 
9 
11 {
15  protected $objectManager;
16 
20  protected $resolverMap;
21 
22  // @codingStandardsIgnoreStart
23 
28  public function __construct(
30  $resolverMap = [
34  ]
35  ) {
36  $this->resolverMap = $resolverMap;
37  $this->objectManager = $objectManager;
38  }
39 
40  // @codingStandardsIgnoreEnd
41 
48  public function getReader($runMode)
49  {
50  return $this->objectManager->get($this->resolverMap[$runMode]);
51  }
52 }
__construct(\Magento\Framework\ObjectManagerInterface $objectManager, $resolverMap=[ScopeInterface::SCOPE_WEBSITE=> \Magento\Store\Model\StoreResolver\Website::class, ScopeInterface::SCOPE_GROUP=> \Magento\Store\Model\StoreResolver\Group::class, ScopeInterface::SCOPE_STORE=> \Magento\Store\Model\StoreResolver\Store::class,])
Definition: ReaderList.php:28