![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/framework/Setup/Declaration/Schema/Declaration/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\Setup\Declaration\Schema\Declaration; use Magento\Framework\App\DeploymentConfig; use Magento\Framework\Config\ReaderInterface; /** * Read schema from different places: XML, csv, etc. * You can add one more reader from di.xml. * Note: that schema from your reader will not be validated through XSD. */ class ReaderComposite implements ReaderInterface { /** * @var ReaderInterface[] */ private $readers; /** * @var DeploymentConfig */ private $deploymentConfig; /** * @param DeploymentConfig $deploymentConfig * @param ReaderInterface[] $readers */ public function __construct(DeploymentConfig $deploymentConfig, array $readers = []) { $this->readers = $readers; $this->deploymentConfig = $deploymentConfig; } /** * @inheritdoc */ public function read($scope = null) { $schema = ['table' => []]; foreach ($this->readers as $reader) { $schema = array_replace_recursive($schema, $reader->read($scope)); } return $schema; } }