Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ReaderComposite.php
Go to the documentation of this file.
1 <?php
8 
11 
18 {
22  private $readers;
23 
27  private $deploymentConfig;
28 
33  public function __construct(DeploymentConfig $deploymentConfig, array $readers = [])
34  {
35  $this->readers = $readers;
36  $this->deploymentConfig = $deploymentConfig;
37  }
38 
42  public function read($scope = null)
43  {
44  $schema = ['table' => []];
45  foreach ($this->readers as $reader) {
46  $schema = array_replace_recursive($schema, $reader->read($scope));
47  }
48 
49  return $schema;
50  }
51 }
$deploymentConfig
__construct(DeploymentConfig $deploymentConfig, array $readers=[])