Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Reader.php
Go to the documentation of this file.
1 <?php
7 
13 class Reader
14 {
18  private $source;
19 
23  private $fallback;
24 
28  private $preProcessor;
29 
38  public function __construct(
39  \Magento\Framework\App\Config\ConfigSourceInterface $source,
40  \Magento\Store\Model\Config\Processor\Fallback $fallback,
41  \Magento\Framework\App\Config\Spi\PreProcessorInterface $preProcessor,
42  \Magento\Framework\App\Config\Spi\PostProcessorInterface $postProcessor
43  ) {
44  $this->source = $source;
45  $this->fallback = $fallback;
46  $this->preProcessor = $preProcessor;
47  }
48 
56  public function read()
57  {
58  return $this->fallback->process(
59  $this->preProcessor->process(
60  $this->source->get()
61  )
62  );
63  }
64 }
$source
Definition: source.php:23
__construct(\Magento\Framework\App\Config\ConfigSourceInterface $source, \Magento\Store\Model\Config\Processor\Fallback $fallback, \Magento\Framework\App\Config\Spi\PreProcessorInterface $preProcessor, \Magento\Framework\App\Config\Spi\PostProcessorInterface $postProcessor)
Definition: Reader.php:38