Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
DefaultScope.php
Go to the documentation of this file.
1 <?php
7 
12 
16 class DefaultScope implements SourceInterface
17 {
21  private $initialConfig;
22 
26  private $converter;
27 
32  public function __construct(
33  Initial $initialConfig,
34  Converter $converter
35  ) {
36  $this->initialConfig = $initialConfig;
37  $this->converter = $converter;
38  }
39 
46  public function get($scopeCode = null)
47  {
48  return $this->converter->convert($this->initialConfig->getData(ScopeConfigInterface::SCOPE_TYPE_DEFAULT));
49  }
50 }
__construct(Initial $initialConfig, Converter $converter)